Class: ForemanDiscovery::NodeAPI::PowerService
- Inherits:
-
NodeResource
show all
- Defined in:
- app/services/foreman_discovery/node_api/power_service.rb
Instance Method Summary
collapse
#initialize, #is_proxy?, #port, #root_path, #scheme
Instance Method Details
#kexec(json) ⇒ Object
11
12
13
|
# File 'app/services/foreman_discovery/node_api/power_service.rb', line 11
def kexec(json)
put(json, "/kexec")
end
|
#reboot ⇒ Object
7
8
9
|
# File 'app/services/foreman_discovery/node_api/power_service.rb', line 7
def reboot
put({}, "/reboot")
end
|
#url ⇒ Object
3
4
5
|
# File 'app/services/foreman_discovery/node_api/power_service.rb', line 3
def url
@args[:url] + "/power"
end
|