Class: Wakame::Actions::CallChildChangeAction
- Inherits:
-
Wakame::Action
- Object
- Wakame::Action
- Wakame::Actions::CallChildChangeAction
- Defined in:
- lib/wakame/actions/start_service.rb
Constant Summary
Constants included from AttributeHelper
AttributeHelper::CONVERT_CLASSES, AttributeHelper::PRIMITIVE_CLASSES
Instance Attribute Summary
Attributes inherited from Wakame::Action
Instance Method Summary collapse
-
#initialize(resource) ⇒ CallChildChangeAction
constructor
A new instance of CallChildChangeAction.
- #run ⇒ Object
Methods inherited from Wakame::Action
#actor_request, #agent_monitor, #all_subactions_complete?, #bind_triggered_rule, #flush_subactions, #master, #notes, #notify, #notify_queue, #on_canceled, #on_failed, #service_cluster, #status=, #subactions, #sync_actor_request, #trigger_action, #walk_subactions
Methods included from ThreadImmutable
#bind_thread, included, #target_thread, #target_thread?, #thread_check
Methods included from AttributeHelper
Constructor Details
#initialize(resource) ⇒ CallChildChangeAction
Returns a new instance of CallChildChangeAction.
50 51 52 53 |
# File 'lib/wakame/actions/start_service.rb', line 50 def initialize(resource) @resource = resource #@parent_instance = parent_instance end |
Instance Method Details
#run ⇒ Object
55 56 57 58 59 60 61 |
# File 'lib/wakame/actions/start_service.rb', line 55 def run Wakame.log.debug("CallChildChangeAction: run: #{@resource.class}") service_cluster.each_instance(@resource.class) { |svc_inst| next if svc_inst.status != Service::STATUS_ONLINE @resource.on_parent_changed(svc_inst, self) } end |