Sha256: 7cf89ae61afe33d1b229ddb8754e80aa2c4688fe69a58c8e196edb2aeca5c2fb

Contents?: true

Size: 568 Bytes

Versions: 23

Compression:

Stored size: 568 Bytes

Contents

module Fog
  module Compute
    class OpenStack
      class Real

        def get_meta(collection_name, parent_id, key)
          request(
            :expects  => [200, 203],
            :method   => 'GET',
            :path     => "#{collection_name}/#{parent_id}/metadata/#{key}"
          )
        end

      end

      class Mock

        def get_meta(collection_name, parent_id, key)
          response = Excon::Response.new
          response.status = 200
          response.body = { 'meta' => {} }
          response
        end

      end

    end
  end
end

Version data entries

23 entries across 23 versions & 7 rubygems

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