semi 0.3.5 → 0.3.6
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/README.md +7 -1
- data/lib/semi/driver.rb +2 -2
- data/lib/semi/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: 9e4f6e3bd44d356d5f9af8102a6ba93e632e7a9f
|
4
|
+
data.tar.gz: fbe07a7e4ecd15eb8db4212fdf0f581c768aa3e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8787689b87cca5ef1e9465b03cbd8e3be47295afcf9a9237a22fac07cf0089a221d650fd7261256e8e5191139f2578ea75993e2584eb3ac0767049391df789a4
|
7
|
+
data.tar.gz: 861f04b5fc8eae3105c0c58c66730faca06636d6f3c6e9bfceb0397cd77333c1c7841f5b2f14a4614548e5006a2ca5649b221133ed31a3d32bc067fadc7eb301
|
data/README.md
CHANGED
@@ -85,4 +85,10 @@ This is useful for adding automation and providing simple commands to
|
|
85
85
|
activate more complex commands in the container.
|
86
86
|
|
87
87
|
There is one special value (default) that will be used when the entrypoint
|
88
|
-
is not provided any arguements.
|
88
|
+
is not provided any arguements.
|
89
|
+
|
90
|
+
Templates
|
91
|
+
---------
|
92
|
+
Configuration files are marked up using standard ERB template statements.
|
93
|
+
|
94
|
+
All variables used in ERB templates need to be specified as lower case.
|
data/lib/semi/driver.rb
CHANGED
@@ -12,18 +12,18 @@ module Semi
|
|
12
12
|
# Initialize the dictionary with the defaults
|
13
13
|
@dictionary = {}
|
14
14
|
@config.defaults.each_pair do |name,val|
|
15
|
+
name.downcase!
|
15
16
|
hints = @config.validators[name] || nil
|
16
17
|
@dictionary[name] = Semi::Variable.import(val, hints)
|
17
18
|
end
|
18
19
|
|
19
20
|
# Now manually merge in the env vars
|
20
21
|
ENV.each_pair do |name, val|
|
22
|
+
name.downcase!
|
21
23
|
hints = @config.validators[name] || nil
|
22
24
|
@dictionary[name] = Semi::Variable.import(val, hints)
|
23
25
|
end
|
24
26
|
|
25
|
-
#puts @dictionary.inspect
|
26
|
-
|
27
27
|
# Check any validations being asserted
|
28
28
|
@config.validators.each_key { |key|
|
29
29
|
begin
|
data/lib/semi/version.rb
CHANGED