Sha256: 5627c393627acebe43f010aaac13d166f8ba41b7181d0b7bf7b88aa6eec59f3f

Contents?: true

Size: 611 Bytes

Versions: 7

Compression:

Stored size: 611 Bytes

Contents

module Fog
  module Compute
    class XenServer
      class Real
        def reboot_server(ref, stype = "clean")
          @connection.request({:parser => Fog::Parsers::XenServer::Base.new, :method => "VM.#{stype}_reboot"}, ref)
        end

        alias_method :reboot_vm, :reboot_server

        def hard_reboot_server(ref)
          reboot_server(ref, "hard")
        end

        alias_method :hard_reboot_vm, :hard_reboot_server

        def clean_reboot_server(ref)
          reboot_server(ref, "clean")
        end

        alias_method :clean_reboot_vm, :clean_reboot_server
      end
    end
  end
end

Version data entries

7 entries across 5 versions & 2 rubygems

Version Path
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-xenserver-0.3.0/lib/fog/compute/xen_server/requests/reboot_server.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-xenserver-0.3.0/lib/fog/compute/xen_server/requests/reboot_server.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-xenserver-0.3.0/lib/fog/compute/xen_server/requests/reboot_server.rb
fog-xenserver-0.3.0 lib/fog/compute/xen_server/requests/reboot_server.rb
fog-xenserver-0.2.3 lib/fog/compute/xen_server/requests/reboot_server.rb
fog-xenserver-0.2.2 lib/fog/compute/xen_server/requests/reboot_server.rb
fog-xenserver-0.2.1 lib/fog/compute/xen_server/requests/reboot_server.rb