Class: HammerCLIForeman::DeleteCommand
- Inherits:
-
WriteCommand
- Object
- HammerCLI::Apipie::WriteCommand
- WriteCommand
- HammerCLIForeman::DeleteCommand
show all
- Defined in:
- lib/hammer_cli_foreman/commands.rb
Direct Known Subclasses
Architecture::DeleteCommand, CommonParameter::DeleteCommand, ComputeResource::DeleteCommand, HammerCLIForeman::Domain::DeleteCommand, Environment::DeleteCommand, Host::DeleteCommand, Hostgroup::DeleteCommand, Image::DeleteCommand, Location::DeleteCommand, Medium::DeleteCommand, Model::DeleteCommand, OperatingSystem::DeleteCommand, Organization::DeleteCommand, PartitionTable::DeleteCommand, Report::DeleteCommand, SmartProxy::DeleteCommand, Subnet::DeleteCommand, Template::DeleteCommand, User::DeleteCommand
Class Method Summary
collapse
Instance Method Summary
collapse
#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_params ⇒ Object
159
160
161
|
# File 'lib/hammer_cli_foreman/commands.rb', line 159
def request_params
{'id' => get_identifier[0]}
end
|