percheron 0.7.9 → 0.7.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -0
- data/lib/percheron/graph.rb +2 -2
- data/lib/percheron/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: 5db1637bb10e489db21618c3d4da9388fba7e3d1
|
4
|
+
data.tar.gz: a803511fcf59896f5bbd1259738719ef2fefbed9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 35e9ceba99e2d3efdc0a185d5b3b1f8b4db728c3b679e6e26ee8e6eecac851963f04d5015d20b5e9aecd7bf36559b3e68df2314a5c28272d00080de372581c96
|
7
|
+
data.tar.gz: da8ca876fca68c69fe0664676f079f13dcb8de3dcde61afaa957dffb7cabc8616a948b8689edd44b5644e11ff3d1f56beabe9cd11279ea15aaa04a52c453ff0e
|
data/README.md
CHANGED
@@ -108,6 +108,12 @@ dig @boot2docker -p 8600 agent2.node.consul +short
|
|
108
108
|
|
109
109
|
## Dependancy graph
|
110
110
|
|
111
|
+
Note: Requires [Graphviz](http://graphviz.org/) installed.
|
112
|
+
|
113
|
+
```bash
|
114
|
+
percheron graph consul-stack
|
115
|
+
```
|
116
|
+
|
111
117
|
![consul-stack](https://raw.githubusercontent.com/ashmckenzie/percheron-consul/master/assets/stack.png)
|
112
118
|
|
113
119
|
## Demo
|
data/lib/percheron/graph.rb
CHANGED
@@ -65,8 +65,8 @@ module Percheron
|
|
65
65
|
|
66
66
|
def create_cluster(unit)
|
67
67
|
return nil if graphs[unit.pseudo_name]
|
68
|
-
|
69
|
-
graphs[unit.pseudo_name] = graph.add_graph(
|
68
|
+
name = 'cluster%s' % graphs.keys.count
|
69
|
+
graphs[unit.pseudo_name] = graph.add_graph(name, cluster_opts(unit))
|
70
70
|
end
|
71
71
|
|
72
72
|
def cluster_opts(unit)
|
data/lib/percheron/version.rb
CHANGED