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

#send_request, #success_message_params

Class Method Details

.apipie_options(options = {}) ⇒ Object



163
164
165
# File 'lib/hammer_cli_foreman/commands.rb', line 163

def self.apipie_options(options={})
  super({:without => declared_identifiers.keys}.merge(options))
end

.command_name(name = nil) ⇒ Object



153
154
155
# File 'lib/hammer_cli_foreman/commands.rb', line 153

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

Instance Method Details

#request_paramsObject



159
160
161
# File 'lib/hammer_cli_foreman/commands.rb', line 159

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