Class: RunCommand

Inherits:
Command show all
Defined in:
lib/ukku/run_command.rb

Instance Method Summary collapse

Methods inherited from Command

#load_app_info

Instance Method Details

#execute(args) ⇒ Object



2
3
4
5
6
7
8
9
10
# File 'lib/ukku/run_command.rb', line 2

def execute(args)
  command = args['COMMAND'].join(' ')

  app_info = load_app_info(args)

  puts "Running command '#{command}' on #{app_info[:host]} ..."
  conn = Connection.new(app_info)
  conn.execute("runcommand #{command}")
end