cloudscopes 0.8.10 → 0.8.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cdc13d02e6de240b604f40984576bee6ba74f88a
4
- data.tar.gz: 8ad30e066f000f38037d047eb602ea407dca1381
3
+ metadata.gz: 70aaeb8bd42c38505955f3a28360a62bffb9eae6
4
+ data.tar.gz: 8fa7a39022e6fe06dc471aadbf021a15fc1a2e39
5
5
  SHA512:
6
- metadata.gz: cb7ceb2dd168ac985bbb962f26ebd381856d555772525f2ef102fb5dd06e0afacd8ad99bc570fcbc35e4feaad15a5766efb344e91717d690fdd0bd4eea3e5c36
7
- data.tar.gz: 766728a18c0adb3df43026322328a84784d24914f28dee92fdbe97d2fec6a6f77dd15e7935407661b72aea9a781f7361c413e14b331af7ecd238e771f686ed9e
6
+ metadata.gz: 56fd20839e1b6cc4782102068b46a8a597e6f3792f43155a958357c8325d6890287c069fff2f767a993a7e6d55d981f357cd0bbf3a5a029293f3d4f77b560f2d
7
+ data.tar.gz: 590ff8e64743d371d9ebe4c52f2e2472b3a17eb54c7ec760d65a576e18dbc5c6fa4840d72013cb6e6b876eeb9e8de7b16a4137244a9f637d88e05376aa5bc66b
@@ -27,8 +27,10 @@ module Cloudscopes
27
27
  end
28
28
 
29
29
  def bluepill_ok?(name)
30
- %x(/usr/local/bin/bluepill #{name} status | grep -v up | grep pid)
31
- $?.exitstatus == 1 # grep pid should not match because all the pids are "up"
30
+ %x(/usr/local/bin/bluepill wfs status).split("\n").
31
+ select { |ln| ln =~ /pid:/ }.
32
+ collect { |ln| ln =~ /pid:(\d+).*:\s*(.*)/ and { pid: $1, status: $2 } }.
33
+ all? { |proc| proc[:status] == "up"}
32
34
  end
33
35
 
34
36
  end
@@ -1,3 +1,3 @@
1
1
  module Cloudscopes
2
- VERSION = "0.8.10"
2
+ VERSION = "0.8.11"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudscopes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.10
4
+ version: 0.8.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oded Arbel