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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cf773d678bba89ec6157521d7bddf05d22681e74
4
- data.tar.gz: 5546392bad1250d0747fc4fc93aa7659af25dc03
3
+ metadata.gz: 4c3db7fef71f4948a26c6b5eb125302bcff62a19
4
+ data.tar.gz: e61b34146b245e680d55a6a6e9bb4c3462c51beb
5
5
  SHA512:
6
- metadata.gz: e1c32ea6fd357a09ecf9d56cee9cd245d81941e0094241fec971da01b3ee98dee1b7fd76073a00dd403a8dad76a94e62d8832e1beed9ebffa5c38f1e16dee5af
7
- data.tar.gz: 36a15edabd7c35851f8b8e49d834b00910e5fc1d60b5b9b8f440fb51ecbf7896001cfa0d16716367a904685f790f2242977f8058539efb66865965341d2f8b71
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.4'
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: $ tiller_base=/tmp tiller_lib=/tmp/lib ./tiller
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.
@@ -1,3 +1,4 @@
1
1
  This is a list of all servers:
2
2
  <% servers.each do |server| %>
3
- Server : <%= server %><% end %>
3
+ Server : <%= server -%>
4
+ <% end %>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tiller
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Round