Method: Ftl::Client#execute

Defined in:
lib/ftl/client.rb

#execute(args = {}) ⇒ Object Also known as: ex



273
274
275
276
277
278
# File 'lib/ftl/client.rb', line 273

def execute(args={})
  arg = args.is_a?(String) ? args : args[1]
  server = find_instances(on_what).select{|i| i.state == 'running' }.first
  puts %|#{ssh_command(server)} #{arg}|
  system(%|#{ssh_command(server)} #{arg}|)
end