Skip to content

Commit 14b7095

Browse files
committed
Merge branch 'patch-1' of github.com:D1plo1d/java into D1plo1d-patch-1
Conflicts: providers/ark.rb
2 parents 896315a + a4c6e9a commit 14b7095

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

providers/ark.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def download_direct_from_oracle(tarball_name, new_resource)
7878
converge_by(description) do
7979
Chef::Log.debug "downloading oracle tarball straight from the source"
8080
cmd = shell_out!(
81-
%Q[ curl --create-dirs -L --retry #{new_resource.retries} --retry-delay #{new_resource.retry_delay} --cookie "#{cookie}" #{new_resource.url} -o #{download_path} ]
81+
%Q[ curl --create-dirs -L --retry #{new_resource.retries} --retry-delay #{new_resource.retry_delay} --cookie "#{cookie}" #{new_resource.url} -o #{download_path} --connect-timeout #{new_resource.connect_timeout} ]
8282
)
8383
end
8484
else

resources/ark.rb

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
attribute :alternatives_priority, :kind_of => Integer, :default => 1
4646
attribute :retries, :kind_of => Integer, :default => 0
4747
attribute :retry_delay, :kind_of => Integer, :default => 2
48+
attribute :connect_timeout, :kind_of => Integer, :default => 600 # => 10 minutes
4849

4950
# we have to set default for the supports attribute
5051
# in initializer since it is a 'reserved' attribute name

0 commit comments

Comments
 (0)