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