Sha256: b387cf1eb5ade2f3043f4e1c66a68cb4012c6bf382c4e2258c34695a3c2ddb48

Contents?: true

Size: 754 Bytes

Versions: 13

Compression:

Stored size: 754 Bytes

Contents

module Hetzner
  class API
    module Boot
      module VNC
        # queries the vnc boot status of one IP address/server
        def boot_vnc?(ip)
          path = "/boot/#{ip}/vnc"
          perform_get path
        end
      
        # enables vnc boot option for one IP address/server
        #
        # see <em>Boot</em> to query the API for available options
        def boot_vnc!(ip, dist, arch, lang)
          path = "/boot/#{ip}/vnc"
          perform_post path, :query => { :dist => dist, :arch => arch, :lang => lang }
        end
      
        # disables the vnc boot status of one IP address/server
        def disable_boot_vnc!(ip)
          path = "/boot/#{ip}/vnc"
          perform_delete path
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
hetzner-api-1.2.0 lib/hetzner/api/boot/vnc.rb
hetzner-api-1.1.0 lib/hetzner/api/boot/vnc.rb
hetzner-api-1.0.6 lib/hetzner/api/boot/vnc.rb
hetzner-api-1.0.5 lib/hetzner/api/boot/vnc.rb
hetzner-api-1.0.4 lib/hetzner/api/boot/vnc.rb
hetzner-api-1.0.3 lib/hetzner/api/boot/vnc.rb
hetzner-api-1.0.2 lib/hetzner/api/boot/vnc.rb
hetzner-api-1.0.1 lib/hetzner/api/boot/vnc.rb
hetzner-api-1.0.0 lib/hetzner/api/boot/vnc.rb
hetzner-api-1.0.0.beta.2 lib/hetzner/api/boot/vnc.rb
hetzner-api-1.0.0.beta.1 lib/hetzner/api/boot/vnc.rb
hetzner-api-1.0.0.alpha.3 lib/hetzner/api/boot/vnc.rb
hetzner-api-1.0.0.alpha.2 lib/hetzner/api/boot/vnc.rb