Class: RsMule::Cli

Inherits:
Thor
  • Object
show all
Defined in:
lib/rs-mule/cli.rb

Instance Method Summary collapse

Instance Method Details

#run_executable(executable) ⇒ Object



57
58
59
60
61
62
63
64
65
66
67
68
69
# File 'lib/rs-mule/cli.rb', line 57

def run_executable(executable)
  # Cover our bases with symbolized keys as well
  new_options = {}
  @options.each do |k,v|
    new_options[k.to_sym] = v
    new_options[k] = v
  end

  client = get_right_api_client

  mule = RsMule::RunExecutable.new(client)
  mule.run_executable(new_options[:tags], executable, new_options)
end