Sha256: 8ca134e245067b85c27c69688c2949cccc3a8e70ad1a62292ff57e55d1c04849

Contents?: true

Size: 463 Bytes

Versions: 10

Compression:

Stored size: 463 Bytes

Contents

module Hetzner
  class API
    module Boot
      module Windows
        def boot_windows?(ip)
          path = "/boot/#{ip}/windows"
          perform_get path
        end

        def boot_windows!(ip, lan)
          path = "/boot/#{ip}/windows"
          perform_post path, :query => { :lang => lang }
        end

        def disable_boot_windows!(ip)
          path = "/boot/#{ip}/windows"
          perform_delete path
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

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