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



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

def task(*_args)
  upsert_local_dir(options[:folder])
  sh_continue rake_sftp_get
  if do_decrypt
    failed_decryption_notify unless 0 == sh_continue(rake_decrypt)
  end
  sh_continue rake_sync_command
  return if options[:simulate]
  sh_continue rake_sftp_archive
  sh_continue rake_files_purge('cache')
  sh_continue rake_files_purge('requests')
end