Skip to content

Instantly share code, notes, and snippets.

@marzdgzmn
Last active October 17, 2018 08:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marzdgzmn/8ba0bc2ccb70295b6d105f24afba96bd to your computer and use it in GitHub Desktop.
Save marzdgzmn/8ba0bc2ccb70295b6d105f24afba96bd to your computer and use it in GitHub Desktop.
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