Class/Module Index [+]

Quicksearch

HammerCLIForeman::Host::StopCommand

Public Instance Methods

option_power_action() click to toggle source
# File lib/hammer_cli_foreman/host.rb, line 469
def option_power_action
  if option_force?
    :cycle
  else
    :stop
  end
end
request_params() click to toggle source
# File lib/hammer_cli_foreman/host.rb, line 485
def request_params
  params = super
  params['id'] = get_identifier
  params
end
success_message() click to toggle source
# File lib/hammer_cli_foreman/host.rb, line 477
def success_message
  if option_force?
    _("Power off forced.")
  else
    _("Powering the host off.")
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.