mondupe 0.0.40 → 0.0.41
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mondupe.rb +3 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d12a50180b03bbebe3f646207318a4c8308e8bc5
|
4
|
+
data.tar.gz: 79e700c0bca0015d3c2c3bc4066bcf2598e11228
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8d351453c73fd862f6e5342f456eccbaec64d822f0ef88aaf298b968ecc9608708f904af973ef61ec4df0dc0080aaa843e93efa678ae79480dd2dbb79e8e366e
|
7
|
+
data.tar.gz: 77f8e2efc866f4fdd82e8f0e089d5891181cb4187927d5a221e55328ffc33b47d9a809aa4e25e204742fbded62ff3e9f0d08e4dc9c80bd93bead5ead3114c94c
|
data/lib/mondupe.rb
CHANGED
@@ -90,7 +90,8 @@ class Mondupe
|
|
90
90
|
|
91
91
|
def try_command(tries, wait, command)
|
92
92
|
begin
|
93
|
-
`#{command}`
|
93
|
+
`#{command}`
|
94
|
+
result = $?.success? or raise "ERROR"
|
94
95
|
rescue
|
95
96
|
tries -= 1
|
96
97
|
if tries > 0
|
@@ -99,6 +100,7 @@ class Mondupe
|
|
99
100
|
retry
|
100
101
|
end
|
101
102
|
puts "Failed after #{tries} retries..."
|
103
|
+
return result
|
102
104
|
end
|
103
105
|
end
|
104
106
|
|