Class: HammerCLIForeman::DeleteCommand

Inherits:
WriteCommand
  • Object
show all
Defined in:
lib/hammer_cli_foreman/commands.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from WriteCommand

#request_headers, #send_request

Class Method Details

.command_name(name = nil) ⇒ Object



176
177
178
# File 'lib/hammer_cli_foreman/commands.rb', line 176

def self.command_name(name=nil)
  super(name) || "delete"
end

Instance Method Details

#request_paramsObject



182
183
184
# File 'lib/hammer_cli_foreman/commands.rb', line 182

def request_params
  {'id' => get_identifier[0]}
end