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.
8 9 10 11 |
# File 'lib/dynflow/actors/execution_plan_cleaner.rb', line 8 def initialize(world, = {}) @world = world @options = end |
Instance Attribute Details
#core ⇒ Object (readonly)
Returns the value of attribute core.
6 7 8 |
# File 'lib/dynflow/actors/execution_plan_cleaner.rb', line 6 def core @core end |
Instance Method Details
#clean! ⇒ Object
25 26 27 |
# File 'lib/dynflow/actors/execution_plan_cleaner.rb', line 25 def clean! core.tell([:clean!]) end |
#core_class ⇒ Object
13 14 15 |
# File 'lib/dynflow/actors/execution_plan_cleaner.rb', line 13 def core_class Core end |
#spawn ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/dynflow/actors/execution_plan_cleaner.rb', line 17 def spawn Concurrent::Promises.resolvable_future.tap do |initialized| @core = core_class.spawn(:name => 'execution-plan-cleaner', :args => [@world, @options], :initialized => initialized) end end |