Class: Federails::Maintenance::ActorsUpdater
- Inherits:
-
Object
- Object
- Federails::Maintenance::ActorsUpdater
- Defined in:
- lib/federails/maintenance/actors_updater.rb
Class Method Summary collapse
-
.run(actors = nil, &block) ⇒ Object
Fetches all distant actors again and update their local copy.
Class Method Details
.run(actors = nil, &block) ⇒ Object
Fetches all distant actors again and update their local copy
A block can be passed with two arguments: the actor being updated and the update status
24 25 26 27 28 29 30 |
# File 'lib/federails/maintenance/actors_updater.rb', line 24 def run(actors = nil, &block) actors_list(actors).each do |actor| status = update(actor) yield(actor, status) if block end end |