Class: CommandInterfaceHandler
- Defined in:
- lib/proto/command_interface_handler.rb
Instance Method Summary collapse
Instance Method Details
#cast_command(cld, command, args) ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/proto/command_interface_handler.rb', line 13 def cast_command(cld, command, args) cr = CloudThrift::CloudResponse.new cr.name = cld.name cr.command = command cr.response = format_response("Running command: #{command}(#{args})") fork do get_response(cld, command, args) end return cr end |
#run_command(cld, command, args) ⇒ Object
2 3 4 5 6 7 8 9 10 11 |
# File 'lib/proto/command_interface_handler.rb', line 2 def run_command(cld, command, args) cr = CloudThrift::CloudResponse.new cr.name = cld.name cr.command = command cr.response = format_response(get_response(cld, command, args)) return cr end |