Class: DTK::Client::Execute::CommandProcessor::RestCall
- Inherits:
-
DTK::Client::Execute::CommandProcessor
- Object
- DTK::Client::Execute::CommandProcessor
- DTK::Client::Execute::CommandProcessor::RestCall
- Extended by:
- CommandBase
- Defined in:
- lib/execute/command_processor/rest_call.rb
Defined Under Namespace
Classes: Error
Class Method Summary collapse
Methods included from CommandBase
get, get_connection, handle_argument_error, post, post_file, rest_url, rotate_args
Class Method Details
.execute(rest_command) ⇒ Object
22 23 24 25 26 27 28 29 |
# File 'lib/execute/command_processor/rest_call.rb', line 22 def self.execute(rest_command) response = raw_execute(rest_command) if response.ok? response.data else raise Error.new(response,rest_command) end end |