Class: Standard::Cli

Inherits:
Object
  • Object
show all
Defined in:
lib/standard/cli.rb

Instance Method Summary collapse

Constructor Details

#initialize(argv) ⇒ Cli

Returns a new instance of Cli.


6
7
8
9
10
# File 'lib/standard/cli.rb', line 6

def initialize(argv)
  @argv = argv
  @builds_config = BuildsConfig.new
  @loads_runner = LoadsRunner.new
end

Instance Method Details

#runObject


12
13
14
15
# File 'lib/standard/cli.rb', line 12

def run
  config = @builds_config.call(@argv)
  @loads_runner.call(config.runner).call(config).to_i
end