lib/daemonic.rb in daemonic-0.0.1 vs lib/daemonic.rb in daemonic-0.0.2
- old
+ new
@@ -4,14 +4,14 @@
require "daemonic/configuration"
require "daemonic/cli"
module Daemonic
- def self.spawn(*args)
- Master.new(*args).start
+ def self.start(options)
+ config = Configuration.new(options, Dir.pwd)
+ config.reload
+ Process.daemon if config.daemonize?
+ Master.new(config).start
end
- def self.configuration(*args)
- Configuration.new(*args)
- end
end