Sha256: 8663684280e1c88f999ad6293decad3f476740f7ff31350c99caf512ab6449d1

Contents?: true

Size: 326 Bytes

Versions: 6

Compression:

Stored size: 326 Bytes

Contents

require 'fog/core/collection'

module Fog
  module Orchestration
    class OpenStack
      class ResourceSchemas < Fog::Collection

        def get(resource_type)
          service.show_resource_schema(resource_type).body
        rescue Fog::Compute::OpenStack::NotFound
          nil
        end

      end
    end
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-1.32.0/lib/fog/openstack/models/orchestration/resource_schemas.rb
fog-1.32.0 lib/fog/openstack/models/orchestration/resource_schemas.rb
fog-1.31.0 lib/fog/openstack/models/orchestration/resource_schemas.rb
fog-1.30.0 lib/fog/openstack/models/orchestration/resource_schemas.rb
fog-1.29.0 lib/fog/openstack/models/orchestration/resource_schemas.rb
fog-1.28.0 lib/fog/openstack/models/orchestration/resource_schemas.rb