Sha256: 0f22c1917ecaf0b3c63ca4399eea65c0184472147c9ee6defc442ea6c12bac33

Contents?: true

Size: 556 Bytes

Versions: 11

Compression:

Stored size: 556 Bytes

Contents

require 'fog/vcloud/models/compute/vapp'

module Fog
  module Vcloud
    class Compute

      class Vapps < Collection

        model Fog::Vcloud::Compute::Vapp

        undef_method :create

        attribute :href

        def all
          load([connection.get_vdc(connection.default_vdc_href).resource_entities].flatten.select { |re| re[:type] == "application/vnd.vmware.vcloud.vApp+xml" })
        end

        def get(uri)
          connection.get_vapp(uri)
        rescue Fog::Errors::NotFound
          nil
        end

      end
    end
  end
end

Version data entries

11 entries across 11 versions & 7 rubygems

Version Path
fog-nirvanix-1.8.2 lib/fog/vcloud/models/compute/vapps.rb
fog-nirvanix-1.8.1 lib/fog/vcloud/models/compute/vapps.rb
fog-parser-fix-1.6.1 lib/fog/vcloud/models/compute/vapps.rb
fog-test-again-1.6.0 lib/fog/vcloud/models/compute/vapps.rb
fog-parser-fix-1.6.0 lib/fog/vcloud/models/compute/vapps.rb
ey-vendored-backup-3.0.27 vendor/gems/fog/lib/fog/vcloud/models/compute/vapps.rb
fog-sgonyea-1.8.1 lib/fog/vcloud/models/compute/vapps.rb
fog-1.8.0 lib/fog/vcloud/models/compute/vapps.rb
fog-maestrodev-1.7.0.20121114190951 lib/fog/vcloud/models/compute/vapps.rb
fog-1.7.0 lib/fog/vcloud/models/compute/vapps.rb
fog-1.6.0 lib/fog/vcloud/models/compute/vapps.rb