mondupe 0.0.40 → 0.0.41

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mondupe.rb +3 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5b28fe0bf93dceb8d4c59e7ee7341064253cf40e
4
- data.tar.gz: 8d130e158ecc63d85d341e8a9b63021c6552e9a1
3
+ metadata.gz: d12a50180b03bbebe3f646207318a4c8308e8bc5
4
+ data.tar.gz: 79e700c0bca0015d3c2c3bc4066bcf2598e11228
5
5
  SHA512:
6
- metadata.gz: 132b6190ef0b1960bbc72121d175f2e28aca1a36937287da9b22a34337b4e96acb53db8cbd06975d730eb3d41a5116afb5c3537907f091ed11aae1884f809b00
7
- data.tar.gz: 06077a2101bbc07c0adaf46aa78db9fa418c07493089b5c82a9d89ee3911620a2777f1f068739d1aa911844e063c11d471050a9b315f137eb4774cf22b863f80
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}` or raise "Failure"
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mondupe
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.40
4
+ version: 0.0.41
5
5
  platform: ruby
6
6
  authors:
7
7
  - Philip Hutchins