Created
May 4, 2016 08:42
-
-
Save anonymous/5468bcb900ba6777e11555d88d81b08b 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
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