Sha256: 33a1d67ec18eca0c6e37a6818393e3662d83f57a5ab32156b079c19861fc71ef

Contents?: true

Size: 539 Bytes

Versions: 4

Compression:

Stored size: 539 Bytes

Contents

module Fog
  module Orchestration
    class OpenStack
      class Real
        def list_stack_data(options={})
          request(
            :method  => 'GET',
            :path    => 'stacks',
            :expects => 200,
            :query   => options
          )
        end
      end

      class Mock
        def list_stack_data
          stacks = self.data[:stacks].values

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fog-1.31.0 lib/fog/openstack/requests/orchestration/list_stack_data.rb
fog-1.30.0 lib/fog/openstack/requests/orchestration/list_stack_data.rb
fog-1.29.0 lib/fog/openstack/requests/orchestration/list_stack_data.rb
fog-1.28.0 lib/fog/openstack/requests/orchestration/list_stack_data.rb