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
  @options = OpenStruct.new
  @options.config_file = 'config.yml'
  @options.verbose = false
  @options.log_file = nil
  @options.pid_file = 'hercules.pid'
  @options.foreground = false

  @config = nil
  @pid_file = nil
  @log = nil
end