Class: HammerCLIForeman::OperatingSystem::SetParameterCommand

Inherits:
Parameter::SetCommand
  • Object
show all
Defined in:
lib/hammer_cli_foreman/operating_system.rb

Instance Method Summary collapse

Methods inherited from Parameter::SetCommand

command_name, #create_parameter, #execute, #parameter_exist?, resource, #update_parameter

Instance Method Details

#base_action_paramsObject



140
141
142
143
144
# File 'lib/hammer_cli_foreman/operating_system.rb', line 140

def base_action_params
  {
    "operatingsystem_id" => option_os_id
  }
end

#validate_optionsObject



135
136
137
138
# File 'lib/hammer_cli_foreman/operating_system.rb', line 135

def validate_options
  super
  validator.any(:option_os_id).required
end