panteras_api 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/mesos_consul_consistency_check +4 -3
- data/lib/panteras_api/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3bfa059cbc8933aadf622c5bb7c6ed2810f4b8a3
|
4
|
+
data.tar.gz: 6dad53a78e79bcde86b660907693b5d315705c7c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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').
|
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 << "#{
|
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'
|
data/lib/panteras_api/version.rb
CHANGED