Sha256: 328e6bd22f8507686cb41dc7b249077460c17701b06b020b06985a478904386c

Contents?: true

Size: 635 Bytes

Versions: 39

Compression:

Stored size: 635 Bytes

Contents

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

      class Mock
        def show_resource_data(_stack_name, _stack_id, _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_data.rb
fog-openstack-0.3.10 lib/fog/orchestration/openstack/requests/show_resource_data.rb
fog-openstack-0.1.30 lib/fog/orchestration/openstack/requests/show_resource_data.rb
fog-openstack-0.1.29 lib/fog/orchestration/openstack/requests/show_resource_data.rb
fog-openstack-0.3.9 lib/fog/orchestration/openstack/requests/show_resource_data.rb
fog-openstack-0.1.28 lib/fog/orchestration/openstack/requests/show_resource_data.rb
fog-openstack-0.3.8 lib/fog/orchestration/openstack/requests/show_resource_data.rb
fog-openstack-0.3.7 lib/fog/orchestration/openstack/requests/show_resource_data.rb
fog-openstack-0.3.6 lib/fog/orchestration/openstack/requests/show_resource_data.rb
fog-openstack-0.3.5 lib/fog/orchestration/openstack/requests/show_resource_data.rb
fog-openstack-0.3.4 lib/fog/orchestration/openstack/requests/show_resource_data.rb
fog-openstack-0.3.3 lib/fog/orchestration/openstack/requests/show_resource_data.rb
fog-openstack-0.3.2 lib/fog/orchestration/openstack/requests/show_resource_data.rb
fog-openstack-0.3.0 lib/fog/orchestration/openstack/requests/show_resource_data.rb
fog-openstack-0.2.4 lib/fog/orchestration/openstack/requests/show_resource_data.rb
fog-openstack-0.2.3 lib/fog/orchestration/openstack/requests/show_resource_data.rb
fog-openstack-0.2.2 lib/fog/orchestration/openstack/requests/show_resource_data.rb
fog-openstack-0.2.1 lib/fog/orchestration/openstack/requests/show_resource_data.rb
fog-openstack-0.2.0 lib/fog/orchestration/openstack/requests/show_resource_data.rb
fog-zj-0.1.28 lib/fog/orchestration/openstack/requests/show_resource_data.rb