Sha256: debba2752311d5cec108ee5b400726489e3ac6b2632a3fa7d69f28c82718d1e3

Contents?: true

Size: 590 Bytes

Versions: 4

Compression:

Stored size: 590 Bytes

Contents

module Fog
  module Orchestration
    class OpenStack
      class Real
        def list_resource_events(stack, resource, options={})
          uri = "stacks/#{stack.stack_name}/#{stack.id}/resources/#{resource.resource_name}/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_resource_events.rb
fog-1.30.0 lib/fog/openstack/requests/orchestration/list_resource_events.rb
fog-1.29.0 lib/fog/openstack/requests/orchestration/list_resource_events.rb
fog-1.28.0 lib/fog/openstack/requests/orchestration/list_resource_events.rb