Class: Dynflow::Actors::ExecutionPlanCleaner
- Inherits:
-
Object
- Object
- Dynflow::Actors::ExecutionPlanCleaner
- Defined in:
- lib/dynflow/actors/execution_plan_cleaner.rb
Defined Under Namespace
Classes: Core
Instance Attribute Summary collapse
-
#core ⇒ Object
readonly
Returns the value of attribute core.
Instance Method Summary collapse
- #clean! ⇒ Object
- #core_class ⇒ Object
-
#initialize(world, options = {}) ⇒ ExecutionPlanCleaner
constructor
A new instance of ExecutionPlanCleaner.
- #spawn ⇒ Object
Constructor Details
#initialize(world, options = {}) ⇒ ExecutionPlanCleaner
Returns a new instance of ExecutionPlanCleaner.
7 8 9 10 |
# File 'lib/dynflow/actors/execution_plan_cleaner.rb', line 7 def initialize(world, = {}) @world = world @options = end |
Instance Attribute Details
#core ⇒ Object (readonly)
Returns the value of attribute core.
5 6 7 |
# File 'lib/dynflow/actors/execution_plan_cleaner.rb', line 5 def core @core end |
Instance Method Details
#clean! ⇒ Object
24 25 26 |
# File 'lib/dynflow/actors/execution_plan_cleaner.rb', line 24 def clean! core.tell([:clean!]) end |
#core_class ⇒ Object
12 13 14 |
# File 'lib/dynflow/actors/execution_plan_cleaner.rb', line 12 def core_class Core end |
#spawn ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/dynflow/actors/execution_plan_cleaner.rb', line 16 def spawn Concurrent::Promises.resolvable_future.tap do |initialized| @core = core_class.spawn(:name => 'execution-plan-cleaner', :args => [@world, @options], :initialized => initialized) end end |