Class: HammerCLIForeman::Host::UpdateCommand
- Inherits:
-
UpdateCommand
- Object
- HammerCLI::Apipie::Command
- Command
- SingleResourceCommand
- UpdateCommand
- HammerCLIForeman::Host::UpdateCommand
- Defined in:
- lib/hammer_cli_foreman/host.rb
Class Method Summary collapse
Instance Method Summary collapse
Methods included from HammerCLIForeman::Hosts::CommonUpdateOptions
ask_password, included, #request_params
Methods inherited from UpdateCommand
command_name, #method_options_for_params
Methods inherited from Command
alias_name_for_resource, build_options, connection_name, #customized_options, #dependency_resolver, dependency_resolver, #exception_handler_class, #get_identifier, #get_resource_id, #get_resource_ids, #request_params, #resolver, resolver, resource_alias_name_mapping, resource_config, resource_name_mapping, #searchables, searchables, #send_request, #transform_format
Class Method Details
.create_option_builder ⇒ Object
305 306 307 308 309 310 311 312 313 |
# File 'lib/hammer_cli_foreman/host.rb', line 305 def self.create_option_builder builder = super %i[locations organizations].each do |resource_name| builder.builders << UpdateDependentSearchablesOptionBuilder.new( HammerCLIForeman.foreman_resource(resource_name), searchables ) end builder end |
Instance Method Details
#option_sources ⇒ Object
317 318 319 320 321 322 323 324 325 |
# File 'lib/hammer_cli_foreman/host.rb', line 317 def option_sources sources = super sources.find_by_name('IdResolution').insert_relative( :after, 'SelfParam', HammerCLIForeman::OptionSources::NewParams.new(self) ) sources end |