Sha256: 1733dd1820719fd04fe66a87b2b16ed93710c24b29dca1ff426aacf356e22e49

Contents?: true

Size: 492 Bytes

Versions: 4

Compression:

Stored size: 492 Bytes

Contents

module Hetzner
  class API
    module Boot
      module Linux
        def boot_linux?(ip)
          path = "/boot/#{ip}/linux"
          perform_get path
        end

        def boot_linux!(ip, dist, arch, lang)
          path = "/boot/#{ip}/linux"
          perform_post path, :query => {:dist => dist, :arch => arch, :lang => lang }
        end

        def disable_boot_linux!(ip)
          path = "/boot/#{ip}/linux"
          perform_delete path
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
hetzner-api-1.2.0 lib/hetzner/api/boot/linux.rb
hetzner-api-1.1.0 lib/hetzner/api/boot/linux.rb
hetzner-api-1.0.6 lib/hetzner/api/boot/linux.rb
hetzner-api-1.0.5 lib/hetzner/api/boot/linux.rb