tiller 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/tiller +4 -4
- data/examples/json/templates/array.erb +2 -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: 4c3db7fef71f4948a26c6b5eb125302bcff62a19
|
4
|
+
data.tar.gz: e61b34146b245e680d55a6a6e9bb4c3462c51beb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 61080e310e0b0d7454809269ceb2b9bdf5ef7e61c13e9851b2bf6a7aa343ce741d2d17acf9a92badf6ba81f25eb0b296667ea34004a90df0f8e7d9b5ad065676
|
7
|
+
data.tar.gz: 383a7379a17f669031b98df9bb2d1804efdd8b4d7ead35168dba1705d30d03195fbb93e0b481a96d994c1240571f93a9987106a612d89e71143a036a45fe5bfc
|
data/bin/tiller
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
# didn't have an existing gem named after it!
|
5
5
|
# Mark Round <github@markround.com>
|
6
6
|
|
7
|
-
VERSION = '0.1.
|
7
|
+
VERSION = '0.1.5'
|
8
8
|
|
9
9
|
require 'erb'
|
10
10
|
require 'ostruct'
|
@@ -29,8 +29,8 @@ end
|
|
29
29
|
# And we're on our way...
|
30
30
|
module Tiller
|
31
31
|
# Set these two environment variables if you want to debug a configuration
|
32
|
-
# in a temporary directory.
|
33
|
-
# EG: $
|
32
|
+
# in a temporary directory, or use the -b and -l arguments.
|
33
|
+
# EG: $ ./bin/tiller -b /tmp/tiller/etc -l /tmp/tiller/lib
|
34
34
|
config = {
|
35
35
|
:tiller_base => (ENV['tiller_base'].nil?) ? '/etc/tiller' : ENV['tiller_base'],
|
36
36
|
:tiller_lib => (ENV['tiller_lib'].nil?) ? '/usr/local/lib' : ENV['tiller_lib'],
|
@@ -160,7 +160,7 @@ module Tiller
|
|
160
160
|
# manual binding, and also non-existing values just get replaced by <nil>
|
161
161
|
# instead of failing on errors.
|
162
162
|
ns = OpenStruct.new(tiller)
|
163
|
-
parsed_template = ERB.new(content).result(ns.instance_eval { binding })
|
163
|
+
parsed_template = ERB.new(content, nil, '-').result(ns.instance_eval { binding })
|
164
164
|
|
165
165
|
# Write the template, and also create the directory path if it
|
166
166
|
# doesn't exist.
|