lib/dante/runner.rb in dante-0.1.0 vs lib/dante/runner.rb in dante-0.1.1
- old
+ new
@@ -26,14 +26,14 @@
end
def initialize(name, defaults={}, &block)
@name = name
@startup_command = block
- @debug = defaults.delete(:debug) || true
@options = {
:host => '0.0.0.0',
- :pid_path => "/var/run/#{@name}.pid"
+ :pid_path => "/var/run/#{@name}.pid",
+ :debug => true
}.merge(defaults)
end
# Accepts options for the process
# @runner.with_options { |opts| opts.on(...) }
@@ -209,10 +209,10 @@
rescue Errno::ESRCH
false
end
def log(message)
- puts message if @debug
+ puts message if options[:debug]
end
end
end
\ No newline at end of file