Last active
October 17, 2018 08:33
-
-
Save marzdgzmn/8ba0bc2ccb70295b6d105f24afba96bd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def sync | |
Marz::Rsync.run(remote_source, local_dir, rsync_opts) do |result| | |
if result.success? | |
# implement successful processing | |
else | |
puts reuslt.output | |
log_error result.output | |
Database.update_sync_result_status(FAILED) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment