Class: HammerCLIForeman::Host::CreateCommand
- Inherits:
-
CreateCommand
- Object
- CreateCommand
- HammerCLIForeman::Host::CreateCommand
- Defined in:
- lib/hammer_cli_foreman/host.rb
Instance Method Summary collapse
Methods included from HammerCLIForeman::Hosts::CommonUpdateOptions
ask_password, included, #request_params
Instance Method Details
#validate_options ⇒ Object
261 262 263 264 265 266 267 268 269 270 271 |
# File 'lib/hammer_cli_foreman/host.rb', line 261 def super unless validator.any(:option_hostgroup_id, :option_hostgroup_name, :option_hostgroup_title).exist? if option_managed validator.any(:option_architecture_name, :option_architecture_id).required validator.any(:option_domain_name, :option_domain_id).required validator.any(:option_operatingsystem_title, :option_operatingsystem_id).required validator.any(:option_ptable_name, :option_ptable_id).required end end end |