etcenv 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +14 -1
- data/README.md +2 -0
- data/lib/etcenv/environment.rb +16 -15
- data/lib/etcenv/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: 19de4fc0206ca8af68639d9b6c67b17cdb032e50
|
4
|
+
data.tar.gz: 8ffcea65ea09e48b7b4e03f634576c06caeda417
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40242eb90c4420c50c33fc0f7b504450f69f4113d0b5b2932a44dcff332925026c8f9b33be1377e3cd3c31b1ce0f144fb3ace65ce3a8592202c9cbf9a39b8378
|
7
|
+
data.tar.gz: 9e6d6f33ee891675e53393062dbd3e85f036fb5a33f2f46f812cbd66d2a50982cd51e79306bcbadd51b4c84cb4fee17164ffe3a275701d14127ec57fae8b4e69
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
data/lib/etcenv/environment.rb
CHANGED
@@ -77,22 +77,23 @@ module Etcenv
|
|
77
77
|
|
78
78
|
node = @etcd.get(key).node
|
79
79
|
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
else
|
94
|
-
dir[name] = child.value
|
80
|
+
if node.dir
|
81
|
+
dir = {}
|
82
|
+
index = 0
|
83
|
+
|
84
|
+
node.children.each do |child|
|
85
|
+
name = child.key.sub(/^.*\//, '')
|
86
|
+
|
87
|
+
index = [index, child.modified_index].max
|
88
|
+
if child.dir
|
89
|
+
next
|
90
|
+
else
|
91
|
+
dir[name] = child.value
|
92
|
+
end
|
95
93
|
end
|
94
|
+
else
|
95
|
+
dir = {key.sub(/^.*\//, '') => node.value}
|
96
|
+
index = node.modified_index
|
96
97
|
end
|
97
98
|
|
98
99
|
modified_indices[key] = index
|
data/lib/etcenv/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: etcenv
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shota Fukumori (sora_h)
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-04-
|
11
|
+
date: 2015-04-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|