Class: HustleAndFlow::Binary::Runner

Inherits:
Thor
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/hustle_and_flow/binary/runner.rb

Instance Method Summary collapse

Instance Method Details

#readyObject



47
48
49
50
51
52
53
# File 'lib/hustle_and_flow/binary/runner.rb', line 47

def ready
  symbolized_options = options.each_with_object({}) do |value, memo|
    memo[value[0].to_sym] = value[1]
  end

  Commands::Ready.new(io: HustleAndFlow::Io::Shell.new, **symbolized_options).call
end

#startObject



31
32
33
34
35
36
37
# File 'lib/hustle_and_flow/binary/runner.rb', line 31

def start
  symbolized_options = options.each_with_object({}) do |value, memo|
    memo[value[0].to_sym] = value[1]
  end

  Commands::Start.new(io: HustleAndFlow::Io::Shell.new, **symbolized_options).call
end