Class: EcoRake::Lib::People::SyncProcess

Inherits:
SyncRely show all
Defined in:
lib/eco-rake/lib/people/sync_process.rb

Overview

The top level task that organizes all the people sync

Constant Summary

Constants inherited from SyncRely

EcoRake::Lib::People::SyncRely::FORWARD_RULES

Constants inherited from BaseTask

BaseTask::FORWARD_RULES

Constants inherited from EcoRake

VERSION

Instance Method Summary collapse

Instance Method Details

#task(*_args) ⇒ Object



18
19
20
21
22
23
24
25
26
27
28
29
# File 'lib/eco-rake/lib/people/sync_process.rb', line 18

def task(*_args)
  upsert_local_dir(options[:folder])
  sh_continue pull_file
  failed_decryption_notify if do_decrypt && !sh_continue(rake_decrypt).zero?

  sh_continue rake_sync_command
  return if options[:simulate]

  sh_continue rake_sftp_archive if pull_driver == 'sftp'
  sh_continue rake_files_purge('cache')
  sh_continue rake_files_purge('requests')
end