Method: Fortifier::BatchUpdater#perform_updates
- Defined in:
- app/models/fortifier/batch_updater.rb
#perform_updates ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'app/models/fortifier/batch_updater.rb', line 14 def perform_updates identify_deltas # Determine what we need to do users_with_unidentified_status = [] user_status.each_pair do | login, status_info | case status_info[:status] when :new add_new_user(login, users_to_update[login], status_info) when :delete unlink_user(login, status_info) when :update update_user(login, users_to_update[login], status_info) when :error # Not doing anything with users that have an error else # Need to log and email users in this state end end end |