Class: Textus::Operations::Refresh
- Inherits:
-
Object
- Object
- Textus::Operations::Refresh
- Defined in:
- lib/textus/operations/refresh.rb
Instance Method Summary collapse
- #all ⇒ Object
-
#initialize(ctx) ⇒ Refresh
constructor
A new instance of Refresh.
- #orchestrator ⇒ Object
- #worker ⇒ Object
Constructor Details
#initialize(ctx) ⇒ Refresh
Returns a new instance of Refresh.
4 5 6 |
# File 'lib/textus/operations/refresh.rb', line 4 def initialize(ctx) @ctx = ctx end |
Instance Method Details
#all ⇒ Object
22 23 24 |
# File 'lib/textus/operations/refresh.rb', line 22 def all Application::Refresh::All.new(ctx: @ctx, bus: @ctx.store.bus) end |
#orchestrator ⇒ Object
12 13 14 15 16 17 18 19 20 |
# File 'lib/textus/operations/refresh.rb', line 12 def orchestrator Application::Refresh::Orchestrator.new( worker: worker, bus: @ctx.store.bus, store_root: @ctx.store.root, store: @ctx.store, role: @ctx.role, ) end |
#worker ⇒ Object
8 9 10 |
# File 'lib/textus/operations/refresh.rb', line 8 def worker Application::Refresh::Worker.new(ctx: @ctx, bus: @ctx.store.bus) end |