Module: Hetzner::API::Boot::Rescue
- Included in:
- Hetzner::API::Boot
- Defined in:
- lib/hetzner/api/boot/rescue.rb
Instance Method Summary collapse
-
#disable_rescue!(ip) ⇒ Object
disables the rescue system for a given IP address/server.
-
#enable_rescue!(ip, os = 'linux', arch = '64') ⇒ Object
enables the rescue systm for given IP address/server using os (operating system) and arch (architecture).
Instance Method Details
#disable_rescue!(ip) ⇒ Object
disables the rescue system for a given IP address/server
15 16 17 |
# File 'lib/hetzner/api/boot/rescue.rb', line 15 def disable_rescue!(ip) perform_delete "/boot/#{ip}/rescue" end |
#enable_rescue!(ip, os = 'linux', arch = '64') ⇒ Object
enables the rescue systm for given IP address/server using os (operating system) and arch (architecture)
see boot? method to query the API for available options
defaults to 64bit Linux
10 11 12 |
# File 'lib/hetzner/api/boot/rescue.rb', line 10 def enable_rescue!(ip, os = 'linux', arch = '64') perform_post "/boot/#{ip}/rescue", :query => { :os => os, :arch => arch } end |