panteras_api 0.0.9 → 0.0.10

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: d3b7de68bc417673c5a3fe9ba5bd159b4d15c05b
4
- data.tar.gz: cf67f85241261d9d33f4bf15da8fbc01be723b6b
3
+ metadata.gz: 3bfa059cbc8933aadf622c5bb7c6ed2810f4b8a3
4
+ data.tar.gz: 6dad53a78e79bcde86b660907693b5d315705c7c
5
5
  SHA512:
6
- metadata.gz: 5b431635a6479b59ebab84056fc7e0ab44944b043f35cbab2b1159671c1598d08115efeae6f7812c4e3439f277b91d67ab39655dc0533f08d9394f069e7cbcad
7
- data.tar.gz: 6b4193b5e7f6aafdaebba2137f23f559bfd18cabb6668aaf30c9a222ebd5360d66eaf97cbaf9dbb4d39fce3ba66969953c3a2e6d314bed64314d7fbe54b6ba27
6
+ metadata.gz: 86b249c83d8810aed5bba24155715a8533bfc7123083461e2d451f983e1f1f7ccd8256a1bd742c6c13af996c1bd93c6f31d3645d9b17b6ecf099da674ac3c815
7
+ data.tar.gz: 36c526eaedd1a62f8fe6ba296f19db0cb23a609d1aa68d1018b1dee42158faf5bd85332c8bf79882c0f3da1106ae5b3e880ffec5a9c2c5261448abe80937db35
@@ -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('marathon').size == 0
62
+ abort("No running mesos tasks seen on mesos master #{config[:mesos_master_hostname]}:#{config[:mesos_master_port]}") if mesos.tasks('marathon').nil?
63
63
 
64
64
  puts "#" * 75 if config[:debug]
65
65
  puts "* Mesos tasks ids running this cluster (all slaves):" if config[:debug]
@@ -116,10 +116,11 @@ consul = ConsulCluster.new(mesos.master_hostname)
116
116
  ### TODO: test with paas-formatted service names
117
117
  puts "#" * 75 if config[:debug]
118
118
  puts "* Consul services for #{my_fqdn}:" if config[:debug]
119
- consul_services = consul.my_service_ids
119
+ consul_services = consul.my_service_ids.reject { |p| p =~ /panteras/ }.collect { |d| d }.compact.reject { |i| i.empty? }
120
120
  puts consul.my_services.join("\n") if config[:debug]
121
121
 
122
- good_news << "#{consul.my_services.size} consul services running."
122
+ good_news << "#{consul_services.size} consul services running."
123
+
123
124
 
124
125
  ### set these environment variables here or in shell for testing a remote docker (ie, boot2docker)
125
126
  #ENV['DOCKER_HOST']='tcp://192.168.59.103:2376'
@@ -1,3 +1,3 @@
1
1
  module PanterasApi
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: panteras_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Colby