Method: Hercules::Hercules#initialize
- Defined in:
- lib/hercules.rb
#initialize(arguments, stdin) ⇒ Hercules
Returns a new instance of Hercules.
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/hercules.rb', line 18 def initialize(arguments, stdin) @arguments = arguments @stdin = stdin # Set default options = OpenStruct.new .config_file = 'config.yml' .verbose = false .log_file = nil .pid_file = 'hercules.pid' .foreground = false @config = nil @pid_file = nil @log = nil end |