blue_green_workers 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9bb20f810be71613d35898d0ec1998b6060a3594
4
- data.tar.gz: 148fd9daf814872e616b5baddf9830bf98a3e033
3
+ metadata.gz: c96c7a8ef051cb569bebc77c5a238c89fc144e3f
4
+ data.tar.gz: 7f79f568346ddc3f366959c093f7945e8627eaa7
5
5
  SHA512:
6
- metadata.gz: 91db6ce2cf44a74f1385cbd5c768a6512879613de21bd6ee760e8b000356831beb028b9bbae12aeac7ba31a243f2a6b1482b683ff112a343b817f4d8a9f2be53
7
- data.tar.gz: 1c5a2b5a1a89a0d84351c0470c65319becc7f6bfaf41142bb878c678d6b40f7035bc4a448b6bf3a059076320c5ca02209bb6fba9838480eafbaaf80c145b67a6
6
+ metadata.gz: a5d48348169ba0fb2bf5772804fc83f87e7aef3a0bc0baabe94bc6468b7cb8a40f1afd182a3fc64e12d8d1e2fc97c680882d940aa32b31235cd986f36302e6c8
7
+ data.tar.gz: e0d9e7723a5aa28045a7cd3b2e98ff324b0912574066f7c8fe2d624769fff842411a0d07c55577840e85ec3a5ef53f2b63405cfb5d805d2ff32783de1d7ec520
data/README.md CHANGED
@@ -53,7 +53,8 @@ end
53
53
  ```
54
54
 
55
55
  Options include*
56
- `delay` -- Delay for `n` seconds if we're not the active cluster
56
+ * `delay` -- Delay for `n` seconds if we're not the active cluster
57
+ * `return` -- What to return if we're not the active cluster
57
58
 
58
59
  ## Development
59
60
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BlueGreenWorkers
4
- VERSION = '0.2.0'
4
+ VERSION = '0.3.0'
5
5
  end
@@ -27,6 +27,7 @@ module BlueGreenWorkers
27
27
  else
28
28
  logger.debug 'Workers not active, skipping BlueGreenWorkers#execute'
29
29
  opts[:delay] && sleep(opts[:delay])
30
+ opts[:return]
30
31
  end
31
32
  end
32
33
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blue_green_workers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - hawknewton