Sha256: c0367d4b24f5e883d9b9e12c509c05e6bbc9d4e520cd4d1889e22cad9144424e
Contents?: true
Size: 1.18 KB
Versions: 17
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
17 entries across 17 versions & 4 rubygems