Class: HammerCLIForeman::Host::DeleteParameterCommand

Inherits:
Parameter::DeleteCommand show all
Defined in:
lib/hammer_cli_foreman/host.rb

Instance Method Summary collapse

Methods inherited from Parameter::DeleteCommand

#execute

Instance Method Details

#base_action_paramsObject



184
185
186
187
188
# File 'lib/hammer_cli_foreman/host.rb', line 184

def base_action_params
  {
    "host_id" => host_id || host_name
  }
end

#validate_optionsObject



179
180
181
182
# File 'lib/hammer_cli_foreman/host.rb', line 179

def validate_options
  super
  validator.any(:host_name, :host_id).required
end