Sha256: e1766a6db0bd2facb2b88c49e8eeeb23486f283ba62566132614a53c40e7165e

Contents?: true

Size: 563 Bytes

Versions: 32

Compression:

Stored size: 563 Bytes

Contents

module Fog
  module Compute
    class Ecloud
      class Catalog < Fog::Ecloud::Collection

        model Fog::Compute::Ecloud::CatalogItem

        attribute :href, :aliases => :Href

        def all
          check_href!
          if data = connection.get_catalog(href).body[:CatalogItems][:CatalogItem]
            load(data)
          end
        end

        def get(uri)
          if data = connection.get_catalog_item(uri)
            new(data.body)
          end
        rescue Fog::Errors::NotFound
          nil
        end

      end
    end
  end
end

Version data entries

32 entries across 32 versions & 8 rubygems

Version Path
brightbox-cli-0.18.1 lib/brightbox-cli/vendor/fog/lib/fog/ecloud/models/compute/catalog.rb
michiels-fog-1.3.1 lib/fog/ecloud/models/compute/catalog.rb
ftl-0.2.0 vendor/bundle/gems/fog-1.3.1/lib/fog/ecloud/models/compute/catalog.rb
brightbox-cli-0.18.0 lib/brightbox-cli/vendor/fog/lib/fog/ecloud/models/compute/catalog.rb
fog-1.3.1 lib/fog/ecloud/models/compute/catalog.rb
fog-1.3.0 lib/fog/ecloud/models/compute/catalog.rb
brightbox-cli-0.17.5 lib/brightbox-cli/vendor/fog/lib/fog/ecloud/models/compute/catalog.rb
fog-1.2.0 lib/fog/ecloud/models/compute/catalog.rb
ktheory-fog-1.1.2 lib/fog/ecloud/models/compute/catalog.rb
brightbox-cli-0.17.4 lib/brightbox-cli/vendor/fog/lib/fog/ecloud/models/compute/catalog.rb
brightbox-cli-0.17.3 lib/brightbox-cli/vendor/fog/lib/fog/ecloud/models/compute/catalog.rb
brightbox-cli-0.17.2 lib/brightbox-cli/vendor/fog/lib/fog/ecloud/models/compute/catalog.rb
brightbox-cli-0.17.1 lib/brightbox-cli/vendor/fog/lib/fog/ecloud/models/compute/catalog.rb
brightbox-cli-0.17.0 lib/brightbox-cli/vendor/fog/lib/fog/ecloud/models/compute/catalog.rb
fog-1.1.2 lib/fog/ecloud/models/compute/catalog.rb
fog_tractical-1.1.4 lib/fog/ecloud/models/compute/catalog.rb
fog_tractical-1.1.3 lib/fog/ecloud/models/compute/catalog.rb
brightbox-cli-0.16.0 lib/brightbox-cli/vendor/fog/lib/fog/ecloud/models/compute/catalog.rb
fog-1.1.1 lib/fog/ecloud/models/compute/catalog.rb
fog-1.1.0 lib/fog/ecloud/models/compute/catalog.rb