subclassed the logger in util.rb, fixed gemfile path in bin/*
This commit is contained in:
parent
3a3fbb44c7
commit
0be599164e
2
bin/hobo
2
bin/hobo
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/env ruby
|
||||
begin
|
||||
require File.expand_path('../.bundle/environment', __FILE__)
|
||||
require File.expand_path('../../.bundle/environment', __FILE__)
|
||||
rescue LoadError
|
||||
# Fallback on doing the resolve at runtime.
|
||||
require "rubygems"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/env ruby
|
||||
begin
|
||||
require File.expand_path('../.bundle/environment', __FILE__)
|
||||
require File.expand_path('../../.bundle/environment', __FILE__)
|
||||
rescue LoadError
|
||||
# Fallback on doing the resolve at runtime.
|
||||
require "rubygems"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/env ruby
|
||||
begin
|
||||
require File.expand_path('../.bundle/environment', __FILE__)
|
||||
require File.expand_path('../../.bundle/environment', __FILE__)
|
||||
rescue LoadError
|
||||
# Fallback on doing the resolve at runtime.
|
||||
require "rubygems"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/env ruby
|
||||
begin
|
||||
require File.expand_path('../.bundle/environment', __FILE__)
|
||||
require File.expand_path('../../.bundle/environment', __FILE__)
|
||||
rescue LoadError
|
||||
# Fallback on doing the resolve at runtime.
|
||||
require "rubygems"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/env ruby
|
||||
begin
|
||||
require File.expand_path('../.bundle/environment', __FILE__)
|
||||
require File.expand_path('../../.bundle/environment', __FILE__)
|
||||
rescue LoadError
|
||||
# Fallback on doing the resolve at runtime.
|
||||
require "rubygems"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/env ruby
|
||||
begin
|
||||
require File.expand_path('../.bundle/environment', __FILE__)
|
||||
require File.expand_path('../../.bundle/environment', __FILE__)
|
||||
rescue LoadError
|
||||
# Fallback on doing the resolve at runtime.
|
||||
require "rubygems"
|
||||
|
|
|
@ -16,5 +16,5 @@ require 'hobo/vm'
|
|||
|
||||
# TODO: Make this configurable
|
||||
log_output = ENV['HOBO_ENV'] == 'test' ? nil : STDOUT
|
||||
HOBO_LOGGER = Logger.new(log_output)
|
||||
HOBO_LOGGER = Hobo::Logger.new(log_output)
|
||||
Hobo::Env.load! unless ENV['HOBO_ENV'] == 'test'
|
||||
|
|
|
@ -15,5 +15,11 @@ error
|
|||
HOBO_LOGGER
|
||||
end
|
||||
end
|
||||
|
||||
class Logger < ::Logger
|
||||
def format_message(level, time, progname, msg)
|
||||
"[#{level} #{time.strftime('%m-%d-%Y %X')}] Hobo: #{msg}\n"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue