Skip to content

Commit

Permalink
Retry uploads 3 times in case the community site is being lame
Browse files Browse the repository at this point in the history
  • Loading branch information
sethvargo committed Oct 1, 2013
1 parent 55bfdbe commit f7de984
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/stove/cookbook.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
require 'fileutils'
require 'retryable'
require 'time'

module Stove
Expand Down Expand Up @@ -122,7 +123,9 @@ def release!

if options[:upload]
Stove::Logger.info "Uploading cookbook"
upload
retryable(tries: 3) do
upload
end
end

if options[:jira]
Expand Down
1 change: 1 addition & 0 deletions stove.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Gem::Specification.new do |spec|
spec.add_dependency 'minitar', '~> 0.5'
spec.add_dependency 'mixlib-authentication', '~> 1.3'
spec.add_dependency 'octokit', '~> 2.2'
spec.add_dependency 'retryable', '~> 1.3'
spec.add_dependency 'solve', '~> 0.8'

spec.add_development_dependency 'bundler', '~> 1.3'
Expand Down

0 comments on commit f7de984

Please sign in to comment.