class EbDeployer::CfEventSource
Public Class Methods
new(stack_name, cf_driver)
click to toggle source
# File lib/eb_deployer/cf_event_source.rb, line 3 def initialize(stack_name, cf_driver) @stack_name = stack_name @cf_driver = cf_driver end
Public Instance Methods
fetch_events(from_anchor) { |events| ... }
click to toggle source
# File lib/eb_deployer/cf_event_source.rb, line 13 def fetch_events(from_anchor, &block) events, next_token = @cf_driver.fetch_events(@stack_name) should_continue = yield(events) fetch_next(next_token, &block) if next_token && should_continue end
get_anchor()
click to toggle source
# File lib/eb_deployer/cf_event_source.rb, line 8 def get_anchor events, _ = @cf_driver.fetch_events(@stack_name) events.first end
Private Instance Methods
fetch_next(next_token) { |events| ... }
click to toggle source
# File lib/eb_deployer/cf_event_source.rb, line 20 def fetch_next(next_token, &block) events, next_token = @cf_driver.fetch_events(@stack_name, :next_token => next_token) should_continue = yield(events) fetch_next(next_token, &block) if next_token && should_continue end