Class: DTK::Client::Execute::CommandProcessor

Inherits:
Object
  • Object
show all
Defined in:
lib/execute/command_processor.rb,
lib/execute/command_processor/rest_call.rb

Direct Known Subclasses

RestCall

Defined Under Namespace

Classes: RestCall

Class Method Summary collapse

Class Method Details

.execute(command) ⇒ Object



22
23
24
25
26
27
28
# File 'lib/execute/command_processor.rb', line 22

def self.execute(command)
  if command.kind_of?(Command::RestCall)
    RestCall.execute(command)
  else
    raise ErrorUsage.new("Unexpected Command type: #{command.class}")
  end
end