tiller 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tiller/data/environment.rb +11 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: feab9651c304713e5ef78bcf87626fd25edec4eb
|
4
|
+
data.tar.gz: bd30b7743b743d495492e44686b6d196991ae664
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aaed3118718d80998ced1e0836ae851c9e5611cbf8aa8a63b14888e53e425643f89c225bcf5b73d97187d8cf029b7b338d61e01fc275ad7fdb5e9277db628a56
|
7
|
+
data.tar.gz: 0d6763b148968f0093aa75df0207efcc2557214909a94fdb1573be50e8c5c7f01271edc6e4ab392ad8dbbf0c46ae97ee299a1fe749fae158fd2fe71084b86772
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# Environment datasource for Tiller. This extracts all environment variables, and makes them available to templates
|
2
|
+
# by converting to lowercase and preceeding them with env_. E.G. env_home, env_logname and so on.
|
3
|
+
|
4
|
+
class EnvironmentDataSource < Tiller::DataSource
|
5
|
+
|
6
|
+
def global_values
|
7
|
+
ENV.each { |k,v| @global_values["env_#{k.downcase}"] = v }
|
8
|
+
@global_values
|
9
|
+
end
|
10
|
+
|
11
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tiller
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mark Round
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-08-04 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A tool to create configuration files in Docker containers from a variety
|
14
14
|
of sources. See https://github.com/markround/tiller for examples and documentation.
|
@@ -26,6 +26,7 @@ files:
|
|
26
26
|
- examples/lib/tiller/data/dummy.rb
|
27
27
|
- examples/lib/tiller/data/network.rb
|
28
28
|
- examples/lib/tiller/template/dummy.rb
|
29
|
+
- lib/tiller/data/environment.rb
|
29
30
|
- lib/tiller/data/file.rb
|
30
31
|
- lib/tiller/datasource.rb
|
31
32
|
- lib/tiller/template/file.rb
|