Method: Ftl::Client#method_missing
- Defined in:
- lib/ftl/client.rb
#method_missing(*args) ⇒ Object (private)
def remote(cmd)
%x|#{ssh_command(server)} #{cmd}|
end
386 387 388 389 390 391 392 393 394 395 396 397 398 |
# File 'lib/ftl/client.rb', line 386 def method_missing(*args) method = args.first.to_sym if con.respond_to? method results = con.send(method) display results.table(_headers_for(method)) elsif [:actions][method] eval_action([:actions][method], args) elsif [:scripts][method] eval_script([:scripts][method], args) else Ftl.help end end |