Sha256: d808a39aa1a902df977a29e88e70c01339ea47dc13c4f351247decfb9abdef43

Contents?: true

Size: 534 Bytes

Versions: 8

Compression:

Stored size: 534 Bytes

Contents

module Fog
    module OpenStack
      class Orchestration
        class Real
          def show_stack(id)
            request(
              :method  => 'GET',
              :path    => "stacks/#{id}",
              :expects => 200
            )
          end
        end

        class Mock
          def show_stack(_id)
            stack = data[:stack].values

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

Version data entries

8 entries across 8 versions & 3 rubygems

Version Path
fog-openstack-1.1.3 lib/fog/openstack/orchestration/requests/show_stack.rb
fog-openstack-1.1.2 lib/fog/openstack/orchestration/requests/show_stack.rb
fog-openstack-fork-99 lib/fog/openstack/orchestration/requests/show_stack.rb
fog-openstack-1.1.0 lib/fog/openstack/orchestration/requests/show_stack.rb
fog-openstack-1.1.0.pre lib/fog/openstack/orchestration/requests/show_stack.rb
fog-openstack-apibank-1.0.102 lib/fog/openstack/orchestration/requests/show_stack.rb
fog-openstack-1.0.11 lib/fog/openstack/orchestration/requests/show_stack.rb
fog-openstack-apibank-1.0.101 lib/fog/openstack/orchestration/requests/show_stack.rb