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 +4 -4
- data/bin/mesos_consul_consistency_check +4 -3
- data/lib/panteras_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d291a384ff04cd8639e9ffc80459fba0e2814f4d
|
|
4
|
+
data.tar.gz: 093afbcc53e6461723e4fe482265d59f6a21f413
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
|
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 << "#{
|
|
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'
|
data/lib/panteras_api/version.rb
CHANGED
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.
|
|
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-
|
|
11
|
+
date: 2016-09-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|