lib/eco-rake/lib/people/sync_process.rb in eco-rake-0.1.6 vs lib/eco-rake/lib/people/sync_process.rb in eco-rake-0.2.0
- old
+ new
@@ -16,12 +16,11 @@
option_reopen :folder, default_lookup: :local_folder
def task(*_args)
upsert_local_dir(options[:folder])
sh_continue pull_file
- if do_decrypt
- failed_decryption_notify unless 0 == sh_continue(rake_decrypt)
- end
+ 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')