Sha256: 27f313b2777b385f3c462eed14aa02c96d220e56a3d89965faf5c154944f5ea4

Contents?: true

Size: 628 Bytes

Versions: 23

Compression:

Stored size: 628 Bytes

Contents

module Fog
  module Orchestration
    class OpenStack
      class Real
        def show_event_details(stack, resource, event_id)
          request(
            :method  => 'GET',
            :path    => "stacks/#{stack.stack_name}/#{stack.id}/resources/#{resource.resource_name}/events/#{event_id}",
            :expects => 200
          )
        end
      end

      class Mock
        def show_event_details(stack, event)
          events = self.data[:events].values

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

Version data entries

23 entries across 23 versions & 3 rubygems

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