Sha256: e8dbe9874376f5c4240f8dff5e5afbc42e373b8f76db884ebfc96897e772f1fa

Contents?: true

Size: 627 Bytes

Versions: 39

Compression:

Stored size: 627 Bytes

Contents

module Fog
  module Orchestration
    class OpenStack
      class Real
        def show_resource_metadata(stack, resource_name)
          request(
            :method  => 'GET',
            :path    => "stacks/#{stack.stack_name}/#{stack.id}/resources/#{resource_name}/metadata",
            :expects => 200
          )
        end
      end

      class Mock
        def show_resource_metadata(_stack, _resource_name)
          resources = data[:resources].values

          Excon::Response.new(
            :body   => {'resources' => resources},
            :status => 200
          )
        end
      end
    end
  end
end

Version data entries

39 entries across 37 versions & 3 rubygems

Version Path
fog-openstack-0.1.31 lib/fog/orchestration/openstack/requests/show_resource_metadata.rb
fog-openstack-0.3.10 lib/fog/orchestration/openstack/requests/show_resource_metadata.rb
fog-openstack-0.1.30 lib/fog/orchestration/openstack/requests/show_resource_metadata.rb
fog-openstack-0.1.29 lib/fog/orchestration/openstack/requests/show_resource_metadata.rb
fog-openstack-0.3.9 lib/fog/orchestration/openstack/requests/show_resource_metadata.rb
fog-openstack-0.1.28 lib/fog/orchestration/openstack/requests/show_resource_metadata.rb
fog-openstack-0.3.8 lib/fog/orchestration/openstack/requests/show_resource_metadata.rb
fog-openstack-0.3.7 lib/fog/orchestration/openstack/requests/show_resource_metadata.rb
fog-openstack-0.3.6 lib/fog/orchestration/openstack/requests/show_resource_metadata.rb
fog-openstack-0.3.5 lib/fog/orchestration/openstack/requests/show_resource_metadata.rb
fog-openstack-0.3.4 lib/fog/orchestration/openstack/requests/show_resource_metadata.rb
fog-openstack-0.3.3 lib/fog/orchestration/openstack/requests/show_resource_metadata.rb
fog-openstack-0.3.2 lib/fog/orchestration/openstack/requests/show_resource_metadata.rb
fog-openstack-0.3.0 lib/fog/orchestration/openstack/requests/show_resource_metadata.rb
fog-openstack-0.2.4 lib/fog/orchestration/openstack/requests/show_resource_metadata.rb
fog-openstack-0.2.3 lib/fog/orchestration/openstack/requests/show_resource_metadata.rb
fog-openstack-0.2.2 lib/fog/orchestration/openstack/requests/show_resource_metadata.rb
fog-openstack-0.2.1 lib/fog/orchestration/openstack/requests/show_resource_metadata.rb
fog-openstack-0.2.0 lib/fog/orchestration/openstack/requests/show_resource_metadata.rb
fog-zj-0.1.28 lib/fog/orchestration/openstack/requests/show_resource_metadata.rb