Class: Asynk::CLI

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/asynk/cli.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#environmentObject

Returns the value of attribute environment.



9
10
11
# File 'lib/asynk/cli.rb', line 9

def environment
  @environment
end

Instance Method Details

#run(args = ARGV) ⇒ Object



11
12
13
14
15
16
17
18
19
20
# File 'lib/asynk/cli.rb', line 11

def run(args=ARGV)
  Asynk.booted_inside = true
  setup_options(args)
  initialize_logger
  daemonize
  write_pid
  load_celluloid
  boot_system
  Asynk.server.run
end