Class: CloudThrift::CommandInterface::Client

Inherits:
Object
  • Object
show all
Includes:
Thrift::Client
Defined in:
lib/proto/gen-rb/command_interface.rb

Instance Method Summary collapse

Instance Method Details

#recv_run_commandObject

Raises:

  • (::Thrift::ApplicationException)


24
25
26
27
28
# File 'lib/proto/gen-rb/command_interface.rb', line 24

def recv_run_command()
  result = receive_message(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)
  send_message('run_command', Run_command_args, :cld => cld, :command => command, :arglist => arglist)
end