Class: HustleAndFlow::Binary::Runner
- Inherits:
-
Thor
- Object
- Thor
- HustleAndFlow::Binary::Runner
- Includes:
- Thor::Actions
- Defined in:
- lib/hustle_and_flow/binary/runner.rb
Instance Method Summary collapse
Instance Method Details
#ready ⇒ Object
47 48 49 50 51 52 53 |
# File 'lib/hustle_and_flow/binary/runner.rb', line 47 def ready = .each_with_object({}) do |value, memo| memo[value[0].to_sym] = value[1] end Commands::Ready.new(io: HustleAndFlow::Io::Shell.new, **).call end |
#start ⇒ Object
31 32 33 34 35 36 37 |
# File 'lib/hustle_and_flow/binary/runner.rb', line 31 def start = .each_with_object({}) do |value, memo| memo[value[0].to_sym] = value[1] end Commands::Start.new(io: HustleAndFlow::Io::Shell.new, **).call end |