Sha256: 930fda1a48c9bae0400c628408970f661420a55abdcf17f87c47482418fe757a

Contents?: true

Size: 1.18 KB

Versions: 39

Compression:

Stored size: 1.18 KB

Contents

module Fog
  module Orchestration
    class OpenStack
      class Real

        # List stacks.
        #
        # @param options [Hash]
        #
        # @return [Excon::Response]
        #   * body [Hash]:
        #     * stacks [Array] - Matching stacks
        #       * stack [Hash]:
        #         * id [String] -
        #         * stack_name [String] -
        #         * description [String]
        #         * links [Array]
        #         * stack_status [String] -
        #         * stack_status_reason [String]
        #         * creation_time [Time] -
        #         * updated_time [Time] -
        #
        #
        # @see http://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_ListStacks.html

        def list_stacks(options = {})
          request(
            :expects  => 200,
            :path => 'stacks',
            :method => 'GET',
            :query => options
          )
        end

      end

      class Mock
        def list_stacks(options = {})
          stacks = self.data[:stacks].values

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

Version data entries

39 entries across 39 versions & 2 rubygems

Version Path
fog-1.22.0 lib/fog/openstack/requests/orchestration/list_stacks.rb
fog-1.21.0 lib/fog/openstack/requests/orchestration/list_stacks.rb
fog-maestrodev-1.20.0.20140305101839 lib/fog/openstack/requests/orchestration/list_stacks.rb
fog-maestrodev-1.20.0.20140305101305 lib/fog/openstack/requests/orchestration/list_stacks.rb
fog-maestrodev-1.19.0.20140212012611 lib/fog/openstack/requests/orchestration/list_stacks.rb
fog-1.20.0 lib/fog/openstack/requests/orchestration/list_stacks.rb
fog-maestrodev-1.19.0.20140110004459 lib/fog/openstack/requests/orchestration/list_stacks.rb
fog-maestrodev-1.19.0.20140110003812 lib/fog/openstack/requests/orchestration/list_stacks.rb
fog-maestrodev-1.19.0.20140109202555 lib/fog/openstack/requests/orchestration/list_stacks.rb
fog-maestrodev-1.19.0.20140107192102 lib/fog/openstack/requests/orchestration/list_stacks.rb
fog-maestrodev-1.19.0.20140107142106 lib/fog/openstack/requests/orchestration/list_stacks.rb
fog-maestrodev-1.19.0.20131219203941 lib/fog/openstack/requests/orchestration/list_stacks.rb
fog-maestrodev-1.18.0.20131219193542 lib/fog/openstack/requests/orchestration/list_stacks.rb
fog-1.19.0 lib/fog/openstack/requests/orchestration/list_stacks.rb
fog-maestrodev-1.18.0.20131219033443 lib/fog/openstack/requests/orchestration/list_stacks.rb
fog-maestrodev-1.18.0.20131219032002 lib/fog/openstack/requests/orchestration/list_stacks.rb
fog-maestrodev-1.18.0.20131219030716 lib/fog/openstack/requests/orchestration/list_stacks.rb
fog-maestrodev-1.18.0.20131219022322 lib/fog/openstack/requests/orchestration/list_stacks.rb
fog-maestrodev-1.18.0.20131218202447 lib/fog/openstack/requests/orchestration/list_stacks.rb
fog-maestrodev-1.18.0.20131209091424 lib/fog/openstack/requests/orchestration/list_stacks.rb