Class: CloudThrift::CommandInterface::Client
- Includes:
- Thrift::Client
- Defined in:
- lib/proto/gen-rb/command_interface.rb
Instance Method Summary collapse
- #recv_run_command ⇒ Object
- #run_command(cld, command, arglist) ⇒ Object
- #send_run_command(cld, command, arglist) ⇒ Object
Instance Method Details
#recv_run_command ⇒ Object
24 25 26 27 28 |
# File 'lib/proto/gen-rb/command_interface.rb', line 24 def recv_run_command() result = (Run_command_result) return result.success unless result.success.nil? raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'run_command failed: unknown result') end |
#run_command(cld, command, arglist) ⇒ Object
15 16 17 18 |
# File 'lib/proto/gen-rb/command_interface.rb', line 15 def run_command(cld, command, arglist) send_run_command(cld, command, arglist) return recv_run_command() end |
#send_run_command(cld, command, arglist) ⇒ Object
20 21 22 |
# File 'lib/proto/gen-rb/command_interface.rb', line 20 def send_run_command(cld, command, arglist) ('run_command', Run_command_args, :cld => cld, :command => command, :arglist => arglist) end |