panteras_api 0.0.7 → 0.0.8

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: 5ffa2e1af600fe3127d530b00f65a42fa26a317d
4
- data.tar.gz: 2353bbef3f563d224d1140fbcafdd2fce9226fa9
3
+ metadata.gz: d291a384ff04cd8639e9ffc80459fba0e2814f4d
4
+ data.tar.gz: 093afbcc53e6461723e4fe482265d59f6a21f413
5
5
  SHA512:
6
- metadata.gz: becea7f3511afecbafe297be72f4ed07db9438ec49bea884a062f36c45c0c8ac0fd88ee4433086a675583111dda7558cbb55cccecdbdfc82c95903794ba7f124
7
- data.tar.gz: 701cdb3baabc30556499f4682adab4398ad9a3465efc52cd97e4c2c6486d8f4c32ef77e7b59cc63cdcec71e18526fd7ece9ebacb8aa851c30c7488a7052927c2
6
+ metadata.gz: ab50b4f3905ccbf0231f369b1f684a18059f62500d64ca86ac505e09ea6a0fa2f807814e92d5e4ecbfe19a43bef7146dfbe78a2cd97c98b9ff70c6b87cdfdc5d
7
+ data.tar.gz: 3817e2f8dc501e1851dc16d90fb7c477260409852964aa289b69fd5059d41f1cf3f3d950f905506b6951fb4686aea64aa0ed7cb1e9774c1edda35d00b535a1da
@@ -59,7 +59,7 @@ rescue SocketError, Errno::ECONNREFUSED => e
59
59
  abort("Problem connecting to mesos host #{config[:mesos_master_hostname]}:#{config[:mesos_master_port]}: #{e.message}")
60
60
  end
61
61
 
62
- abort("No running mesos tasks seen on mesos master #{config[:mesos_master_hostname]}:#{config[:mesos_master_port]}") if mesos.tasks.size == 0
62
+ abort("No running mesos tasks seen on mesos master #{config[:mesos_master_hostname]}:#{config[:mesos_master_port]}") if mesos.tasks.nil?
63
63
 
64
64
  puts "#" * 75 if config[:debug]
65
65
  puts "* Mesos tasks ids running this cluster (all slaves):" if config[:debug]
@@ -103,10 +103,11 @@ consul = ConsulCluster.new(mesos.master_hostname)
103
103
  ### TODO: test with paas-formatted service names
104
104
  puts "#" * 75 if config[:debug]
105
105
  puts "* Consul services for #{my_fqdn}:" if config[:debug]
106
- consul_services = consul.my_service_ids
106
+ #consul_services = consul.my_service_ids
107
+ consul_services = consul.my_service_ids.reject { |p| p =~ /panteras/ }.collect { |d| d }.compact.reject { |i| i.empty? }
107
108
  puts consul.my_services.join("\n") if config[:debug]
108
109
 
109
- good_news << "#{consul.my_services.size} consul services running."
110
+ good_news << "#{consul_services.size} consul services running."
110
111
 
111
112
  ### set these environment variables here or in shell for testing a remote docker (ie, boot2docker)
112
113
  #ENV['DOCKER_HOST']='tcp://192.168.59.103:2376'
@@ -1,3 +1,3 @@
1
1
  module PanterasApi
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: panteras_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Colby
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-17 00:00:00.000000000 Z
11
+ date: 2016-09-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler