Sha256: e8edf37289b0fa91a20375c609579a751ab1fba7083772ea27b9ada05c5172bf
Contents?: true
Size: 529 Bytes
Versions: 10
Compression:
Stored size: 529 Bytes
Contents
module Hetzner class API module Failover # queries the failover status of one IP address or all failover IP addresses of the account def failover?(ip = nil) path = "/failover" path << "/#{ip}" if ip perform_get path end # redirects the failover_ip to another server ip def failover!(failover_ip, active_server_ip) path = "/failover/#{failover_ip}" perform_post path, :query => { :active_server_ip => active_server_ip } end end end end
Version data entries
10 entries across 10 versions & 1 rubygems