Sha256: 70693131db7660f140f9c73e7129e6ccf42f0047d1710099285a5e8897bdf28e

Contents?: true

Size: 864 Bytes

Versions: 19

Compression:

Stored size: 864 Bytes

Contents

module Fog
  module Orchestration
    class OpenStack
      class Real
        def list_stack_events(stack, options = {})
          Fog::Logger.deprecation('Calling OpenStack[:orchestration].list_stack_events(stack, options)'\
                                  ' is deprecated, call .list_events(:stack => stack) or '\
                                  ' .list_events(:stack_name => value, :stack_id => value) instead')

          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(stack, options={})
          events = self.data[:events].values

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

Version data entries

19 entries across 19 versions & 3 rubygems

Version Path
fog-openstack-0.1.10 lib/fog/openstack/requests/orchestration/list_stack_events.rb
fog-openstack-0.1.9 lib/fog/openstack/requests/orchestration/list_stack_events.rb
fog-openstack-0.1.8 lib/fog/openstack/requests/orchestration/list_stack_events.rb
fog-openstack-0.1.7 lib/fog/openstack/requests/orchestration/list_stack_events.rb
fog-openstack-0.1.6 lib/fog/openstack/requests/orchestration/list_stack_events.rb
fog-openstack-0.1.5 lib/fog/openstack/requests/orchestration/list_stack_events.rb
fog-openstack-0.1.4 lib/fog/openstack/requests/orchestration/list_stack_events.rb
fog-openstack-0.1.3 lib/fog/openstack/requests/orchestration/list_stack_events.rb
fog-openstack-0.1.2 lib/fog/openstack/requests/orchestration/list_stack_events.rb
fog-openstack-0.1.1 lib/fog/openstack/requests/orchestration/list_stack_events.rb
fog-openstack-0.1.0 lib/fog/openstack/requests/orchestration/list_stack_events.rb
fog-1.37.0 lib/fog/openstack/requests/orchestration/list_stack_events.rb
fog-1.36.0 lib/fog/openstack/requests/orchestration/list_stack_events.rb
fog-1.35.0 lib/fog/openstack/requests/orchestration/list_stack_events.rb
fog-2.0.0.pre.0 lib/fog/openstack/requests/orchestration/list_stack_events.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-1.32.0/lib/fog/openstack/requests/orchestration/list_stack_events.rb
fog-1.34.0 lib/fog/openstack/requests/orchestration/list_stack_events.rb
fog-1.33.0 lib/fog/openstack/requests/orchestration/list_stack_events.rb
fog-1.32.0 lib/fog/openstack/requests/orchestration/list_stack_events.rb