Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions lib/hammer_cli_foreman/host.rb
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,17 @@ def option_power_action
build_options without: [:power_action]
end

class WakeCommand < HammerCLIForeman::SingleResourceCommand
action :wol

command_name 'wake'
desc _('Send Wake-on-LAN request to a host')
success_message _('Wake-on-LAN request sent successfully.')
failure_message _('Failed to send Wake-on-LAN request')

build_options
end

class RebuildConfigCommand < HammerCLIForeman::SingleResourceCommand
action :rebuild_config
command_name "rebuild-config"
Expand Down