Skip to content

Instantly share code, notes, and snippets.

@marzdgzmn
Created October 30, 2018 09:48
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/399f2e469367ab157223bf45500f6943 to your computer and use it in GitHub Desktop.
Save marzdgzmn/399f2e469367ab157223bf45500f6943 to your computer and use it in GitHub Desktop.
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