Sha256: 863685304d103d109433eff77dec548c3c475358554895271bd7cf413b8a8cd5

Contents?: true

Size: 554 Bytes

Versions: 7

Compression:

Stored size: 554 Bytes

Contents

module Fog
  module Compute
    class XenServer
      class Real
        def revert_to_server(snapshot_ref, extra_args = {})
          @connection.request({:parser => Fog::Parsers::XenServer::Base.new, :method => "VM.revert"}, snapshot_ref)
        end

        alias_method :revert_to_vm, :revert_to_server

        def snapshot_server(snapshot_ref, extra_args = {})
          Fog::Logger.deprecation "This method is DEPRECATED. Use #revert_to_server instead."
          revert_to_server(snapshot_ref, extra_args)
        end
      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/revert_to_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/revert_to_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/revert_to_server.rb
fog-xenserver-0.3.0 lib/fog/compute/xen_server/requests/revert_to_server.rb
fog-xenserver-0.2.3 lib/fog/compute/xen_server/requests/revert_to_server.rb
fog-xenserver-0.2.2 lib/fog/compute/xen_server/requests/revert_to_server.rb
fog-xenserver-0.2.1 lib/fog/compute/xen_server/requests/revert_to_server.rb