Module: SubZero::Main

Extended by:
Main
Includes:
Common
Included in:
Main
Defined in:
lib/sub_zero/main.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Common

#log

Methods included from Environment

#env

Instance Attribute Details

#cli_argsObject

Returns the value of attribute cli_args.



8
9
10
# File 'lib/sub_zero/main.rb', line 8

def cli_args
  @cli_args
end

#configObject

Returns the value of attribute config.



8
9
10
# File 'lib/sub_zero/main.rb', line 8

def config
  @config
end

Instance Method Details

#boot(cli_args) ⇒ Object



10
11
12
13
14
15
16
17
18
19
# File 'lib/sub_zero/main.rb', line 10

def boot cli_args
  log "booting..."

  log "\tloading service.yml"
  @config = load_config
  log "\tparsing CLI args"
  @cli_args = parse_cli_args cli_args

  self
end