lib/zeusd/daemon.rb in zeusd-0.1.0 vs lib/zeusd/daemon.rb in zeusd-0.1.1

- old
+ new

@@ -27,11 +27,11 @@ end attr_reader :cwd, :verbose, :log_file, :log_queue, :interpreter, :child_process def initialize(options = {}) - @cwd = Pathname.new(options.fetch(:cwd, Dir.pwd)).realpath - @verbose = options.fetch(:verbose, false) + @cwd = Pathname.new(options[:cwd] || Dir.pwd).realpath + @verbose = !!options[:verbose] @interpreter = Interpreter.new end def start!(options = {}) @process = Zeusd::Process.find(start_process!.pid) \ No newline at end of file