tiller 0.6.3 → 0.6.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/tiller +7 -1
  3. data/lib/tiller/options.rb +3 -0
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ac9f2fbbd550645d81ee50bb29ab95cce4b47409
4
- data.tar.gz: d62decc948523c1b0bdec60c57e006928944198b
3
+ metadata.gz: 12ba31f3bc1bfba41e65bcd3b0ab7c5257bd8c20
4
+ data.tar.gz: 7c20d6ffbc5c0a518caca23a6813112990348a50
5
5
  SHA512:
6
- metadata.gz: 88fd3ca312ddb733e7a7a0461fefe7e8d7b78aa6c0b3a8930002f810665380a7bdf4bb3d95b897019d09f9669fc500f4987a90c15c310736c8969f7bdec362af
7
- data.tar.gz: a1d28910dbcee918323aba31cbc26afb8f0d288c849fb74861cf3153a140fd24bbf563544bcb18c3a175a5a02b49674d1824fe227511f9234c4137a617cc11f3
6
+ metadata.gz: 11d659d2f809d1a6b423cf25540fcbeab9f8d4f92a6ed8fd7f3b3f5b1175b87cab66dd6c4802dfa78e85e5b4361d279014e72ce630ae25e363a39919ac5f1118
7
+ data.tar.gz: e80b88ded26a38fd419b6c2f84c3b1f12451ea52e878d403e5dfbcf180b70c816f4e85c0f7a25dd4f7e01212d9ded8d21741c6dcbd597020426f9db0a1ca364e
data/bin/tiller CHANGED
@@ -8,7 +8,7 @@
8
8
  #
9
9
  # Mark Dastmalchi-Round <github@markround.com>
10
10
 
11
- VERSION = '0.6.3'
11
+ VERSION = '0.6.4'
12
12
 
13
13
  require 'erb'
14
14
  require 'ostruct'
@@ -168,6 +168,12 @@ module Tiller
168
168
  Thread.start{ tiller_api(tiller_api_hash) }
169
169
  end
170
170
 
171
+ # Override the exec if run with -x (see options.rb)
172
+ if config.has_key?(:alt_exec)
173
+ puts "Overriding exec parameter [#{config['exec']}] with [#{config[:alt_exec]}]" if config[:verbose]
174
+ config['exec']=config[:alt_exec]
175
+ end
176
+
171
177
  if config[:no_exec] == false && config.key?('exec')
172
178
  # All templates created, so let's start the replacement process
173
179
  puts "Executing #{config['exec'].to_s}..."
@@ -24,6 +24,9 @@ def parse_options(config)
24
24
  opts.on('-e', '--environment [ENV]', 'Override the \'environment\' environment variable') do |environment|
25
25
  config[:environment] = environment
26
26
  end
27
+ opts.on('-x', '--exec [EXEC]', 'Override the \'exec\' variable from common.yaml') do |exec|
28
+ config[:alt_exec] = exec
29
+ end
27
30
 
28
31
  opts.on('-h', '--help', 'Display this screen') do
29
32
  puts opts
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.6.3
4
+ version: 0.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Dastmalchi-Round