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.15.0 lib/brightbox-cli/vendor/fog/lib/fog/openstack/requests/compute/get_meta.rb
tag-fog-1.0.1 lib/fog/openstack/requests/compute/get_meta.rb
fog-1.0.0 lib/fog/openstack/requests/compute/get_meta.rb