Sha256: ae15312ed60d82efb6b8789148e8ecdfde06afaa14352057a278f58e4ef54a8c

Contents?: true

Size: 544 Bytes

Versions: 4

Compression:

Stored size: 544 Bytes

Contents

module Fog
  module Orchestration
    class OpenStack
      class Real
        def list_stack_events(stack, options={})
          uri = "stacks/#{stack.stack_name}/#{stack.id}/events"
          request(:method => 'GET', :path => uri, :expects => 200, :query => options )
        end
      end

      class Mock
        def list_stack_events
          events = self.data[:events].values

          Excon::Response.new(
            :body   => { 'events' => events },
            :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_events.rb
fog-1.30.0 lib/fog/openstack/requests/orchestration/list_stack_events.rb
fog-1.29.0 lib/fog/openstack/requests/orchestration/list_stack_events.rb
fog-1.28.0 lib/fog/openstack/requests/orchestration/list_stack_events.rb