timed_rest_for_chef 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/timed_rest_for_chef.rb +2 -2
- data/timed_rest_for_chef.gemspec +1 -1
- metadata +1 -1
data/lib/timed_rest_for_chef.rb
CHANGED
@@ -12,10 +12,10 @@ if(Gem::Version.new(Chef::VERSION) < Gem::Version.new('10.14.0'))
|
|
12
12
|
end
|
13
13
|
|
14
14
|
module TimedRestForChef
|
15
|
-
def timed_call
|
15
|
+
def timed_call(*args, &block)
|
16
16
|
begin
|
17
17
|
Timeout::timeout(config[:rest_timeout], RESTTimeout) do
|
18
|
-
original_call
|
18
|
+
original_call(*args, &block)
|
19
19
|
end
|
20
20
|
rescue => e
|
21
21
|
if(e.is_a?(WrapperTimeout))
|
data/timed_rest_for_chef.gemspec
CHANGED