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



144
145
146
147
148
# File 'lib/hammer_cli_foreman/operating_system.rb', line 144

def base_action_params
  {
    "operatingsystem_id" => os_id
  }
end

#validate_optionsObject



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

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