Class: ForemanDiscovery::NodeAPI::PowerLegacyProxiedService

Inherits:
NodeResource
  • Object
show all
Defined in:
app/services/foreman_discovery/node_api/power_legacy_proxied_service.rb

Overview

legacy /reboot call via proxy

Instance Method Summary collapse

Methods inherited from NodeResource

#is_proxy?, #port, #root_path, #scheme, #url

Constructor Details

#initialize(args) ⇒ PowerLegacyProxiedService

Returns a new instance of PowerLegacyProxiedService.



4
5
6
# File 'app/services/foreman_discovery/node_api/power_legacy_proxied_service.rb', line 4

def initialize(args)
  super args.merge(:proxy => true)
end

Instance Method Details

#rebootObject



8
9
10
# File 'app/services/foreman_discovery/node_api/power_legacy_proxied_service.rb', line 8

def reboot
  put({}, "/reboot")
end