Class: Standard::Cli
- Inherits:
-
Object
- Object
- Standard::Cli
- Defined in:
- lib/standard/cli.rb
Instance Method Summary collapse
-
#initialize(argv) ⇒ Cli
constructor
A new instance of Cli.
- #run ⇒ Object
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
#run ⇒ Object
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 |