Module: Hetzner::API::Boot

Includes:
Plesk, Rescue, VNC, Windows
Included in:
Hetzner::API
Defined in:
lib/hetzner/api/boot.rb,
lib/hetzner/api/boot/vnc.rb,
lib/hetzner/api/boot/plesk.rb,
lib/hetzner/api/boot/rescue.rb,
lib/hetzner/api/boot/windows.rb

Defined Under Namespace

Modules: Plesk, Rescue, VNC, Windows

Instance Method Summary collapse

Methods included from Windows

#boot_windows!, #boot_windows?, #disable_boot_windows!

Methods included from VNC

#boot_vnc!, #boot_vnc?, #disable_boot_vnc!

Methods included from Rescue

#disable_rescue!, #enable_rescue!

Methods included from Plesk

#boot_plesk!, #boot_plesk?, #disable_boot_plesk!

Instance Method Details

#boot?(ip = nil) ⇒ Boolean

lists boot options for a given IP address/server or all servers of the account

Returns:

  • (Boolean)


10
11
12
13
14
# File 'lib/hetzner/api/boot.rb', line 10

def boot?(ip = nil)
  path = "/boot"
  path << "/#{ip}" if ip
  perform_get path
end