lib/eco-rake/lib/people/sync_process.rb in eco-rake-0.2.4 vs lib/eco-rake/lib/people/sync_process.rb in eco-rake-0.2.5

- old
+ new

@@ -20,10 +20,11 @@ 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 @@ -60,10 +61,12 @@ def failed_decryption_notify msg = 'File decryption failed' puts msg exit 1 if options[:simulate] + exit 1 if options[:no_email] exit 1 unless inbox = mail_to + email(enviro: target_enviro, to: inbox, subject: msg, body: msg) exit 1 end end end