Class: StackMate::WaitCondition
- Inherits:
-
Ruote::Participant
- Object
- Ruote::Participant
- StackMate::WaitCondition
show all
- Includes:
- Logging
- Defined in:
- lib/stackmate/participants/common.rb
Constant Summary
collapse
- @@handles =
{}
- @@conditions =
[]
Class Method Summary
collapse
Instance Method Summary
collapse
Methods included from Logging
configure_logger_for, #logger, logger_for
Class Method Details
.create_handle(handle_name, handle) ⇒ Object
36
37
38
|
# File 'lib/stackmate/participants/common.rb', line 36
def self.create_handle(handle_name, handle)
@@handles[handle_name] = handle
end
|
.get_conditions ⇒ Object
44
45
46
|
# File 'lib/stackmate/participants/common.rb', line 44
def self.get_conditions()
@@conditions
end
|
Instance Method Details
#on_workitem ⇒ Object
28
29
30
31
32
33
34
|
# File 'lib/stackmate/participants/common.rb', line 28
def on_workitem
logger.debug "Entering #{workitem.participant_name} "
workitem[participant_name] = {}
@@conditions << self
stackname = workitem.fields['ResolvedNames']['AWS::StackName']
workitem[participant_name][:physical_id] = stackname + '-' + 'WaitCondition'
end
|
#set_handle(handle_name) ⇒ Object
40
41
42
|
# File 'lib/stackmate/participants/common.rb', line 40
def set_handle(handle_name)
reply(workitem) if @@handles[handle_name]
end
|