Skip to content

Instantly share code, notes, and snippets.

Created May 4, 2016 08:42
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 anonymous/5468bcb900ba6777e11555d88d81b08b to your computer and use it in GitHub Desktop.
Save anonymous/5468bcb900ba6777e11555d88d81b08b to your computer and use it in GitHub Desktop.
log.info "Executing '#{command.join(' ')}'"
begin
timeout(config['deploy-timeout'].to_i) do
execute_and_log command
end
rescue Timeout::Error => e
@timeout_exception = "Execution Timeout Error"
log.error "#{@timeout_exception}"
raise e
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment