Created
October 30, 2018 09:48
-
-
Save marzdgzmn/399f2e469367ab157223bf45500f6943 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 syn | |
run_cmd | |
syn | |
end | |
private | |
def run_cmd | |
`#{cmd}` | |
rescue Errno::ENOENT => e | |
log_error(e.message) | |
Database.update_sync_result_FAILED) | |
exit | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment