Sha256: 57ba6d3572342b48bc6fc239b4ddb80847a95efaf4612a15318c75288091068b
Contents?: true
Size: 672 Bytes
Versions: 13
Compression:
Stored size: 672 Bytes
Contents
module Hetzner class API module Boot module Rescue # enables the rescue systm for given IP address/server using <em>os</em> (operating system) and <em>arch</em> (architecture) # # see <em>boot?</em> method to query the API for available options # # defaults to 64bit Linux def enable_rescue!(ip, os = 'linux', arch = '64') perform_post "/boot/#{ip}/rescue", :query => { :os => os, :arch => arch } end # disables the rescue system for a given IP address/server def disable_rescue!(ip) perform_delete "/boot/#{ip}/rescue" end end end end end
Version data entries
13 entries across 13 versions & 1 rubygems