tiller 0.0.6 → 0.0.7

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bd958ba1c0e66b1e54547ac98436ba84e9be896d
4
- data.tar.gz: 55d57829b65b20e0e1be7bc5cc49afb9744c2dc3
3
+ metadata.gz: feab9651c304713e5ef78bcf87626fd25edec4eb
4
+ data.tar.gz: bd30b7743b743d495492e44686b6d196991ae664
5
5
  SHA512:
6
- metadata.gz: 822807def996500c7ceff08de5345c553c4fc15507154db623314ab2f5dfbb8419c8181fb7fc98e7ad8f04a8213c20d06e25c39908ff7e557370030f3228bfbc
7
- data.tar.gz: 0f629877a94570f44b5097bf4415acf89c7e87cea797a4bb27a3c10a2841a16381813fefe9da86bddc03e5bcd98ee8ae9f64cc4ed4f225a03d4c1f7f981a1058
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.6
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-07-21 00:00:00.000000000 Z
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