Module: Hetzner::API::Boot::VNC
- Included in:
- Hetzner::API::Boot
- Defined in:
- lib/hetzner/api/boot/vnc.rb
Instance Method Summary collapse
-
#boot_vnc!(ip, dist, arch, lang) ⇒ Object
enables vnc boot option for one IP address/server.
-
#boot_vnc?(ip) ⇒ Boolean
queries the vnc boot status of one IP address/server.
-
#disable_boot_vnc!(ip) ⇒ Object
disables the vnc boot status of one IP address/server.
Instance Method Details
#boot_vnc!(ip, dist, arch, lang) ⇒ Object
enables vnc boot option for one IP address/server
see Boot to query the API for available options
14 15 16 17 |
# File 'lib/hetzner/api/boot/vnc.rb', line 14 def boot_vnc!(ip, dist, arch, lang) path = "/boot/#{ip}/vnc" perform_post path, :query => { :dist => dist, :arch => arch, :lang => lang } end |
#boot_vnc?(ip) ⇒ Boolean
queries the vnc boot status of one IP address/server
6 7 8 9 |
# File 'lib/hetzner/api/boot/vnc.rb', line 6 def boot_vnc?(ip) path = "/boot/#{ip}/vnc" perform_get path end |
#disable_boot_vnc!(ip) ⇒ Object
disables the vnc boot status of one IP address/server
20 21 22 23 |
# File 'lib/hetzner/api/boot/vnc.rb', line 20 def disable_boot_vnc!(ip) path = "/boot/#{ip}/vnc" perform_delete path end |