Sha256: 1f39804ebf9ef39d94c6d401c93d4ec9b45ed2b1c78d33f39de6c65a04e1c7a4

Contents?: true

Size: 391 Bytes

Versions: 12

Compression:

Stored size: 391 Bytes

Contents

module Fog
  module Compute
    class XenServer
      class Real
        def snapshots
          data = @connection.request(:parser => Fog::Parsers::XenServer::GetRecords.new, :method => "VM.get_all_records")
          data.keep_if { |vm| vm[:is_a_snapshot] }
          servers.load(data)
        rescue Fog::XenServer::RequestFailed => e
          []
        end
      end
    end
  end
end

Version data entries

12 entries across 10 versions & 2 rubygems

Version Path
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-xenserver-0.3.0/lib/fog/compute/xen_server/requests/snapshots.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-xenserver-0.3.0/lib/fog/compute/xen_server/requests/snapshots.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-xenserver-0.3.0/lib/fog/compute/xen_server/requests/snapshots.rb
fog-xenserver-0.3.0 lib/fog/compute/xen_server/requests/snapshots.rb
fog-xenserver-0.2.3 lib/fog/compute/xen_server/requests/snapshots.rb
fog-xenserver-0.2.2 lib/fog/compute/xen_server/requests/snapshots.rb
fog-xenserver-0.2.1 lib/fog/compute/xen_server/requests/snapshots.rb
fog-xenserver-0.2.0 lib/fog/compute/xen_server/requests/snapshots.rb
fog-xenserver-0.1.2 lib/fog/compute/xen_server/requests/snapshots.rb
fog-xenserver-0.1.1 lib/fog/compute/xen_server/requests/snapshots.rb
fog-xenserver-0.1.0 lib/fog/compute/xen_server/requests/snapshots.rb
fog-xenserver-0.0.1.beta2 lib/fog/compute/xen_server/requests/snapshots.rb