tiller 0.7.2 → 0.7.3

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: 23cb72e7fababe5a22673372565626bf2f12d7cc
4
- data.tar.gz: 087415e292aabae4501b67597691731531b4e7c8
3
+ metadata.gz: 7ad52aeecb758099a50e137c5cfac27f3f3b8426
4
+ data.tar.gz: a6a6f0e8fa396b6588ee1172c51ad62f928e10a2
5
5
  SHA512:
6
- metadata.gz: 03c72384821731e643492147b7e8cc6ac303b78a56dcfeff21aab927ad537936fac54cadfabf684b0ac7609f7ad4c0a129aa144a8467cb67ce6bdfdd6d76e635
7
- data.tar.gz: 031b42444defb5241356e4a96d778d19b6858927dfbeaf9398bb6f69b481548b322c229af6131aad70556099b1e79c426fb6f4385b17d499e5b8e559c1c6b4cb
6
+ metadata.gz: 1140c813c8fcf4e324b09ee8dd540146a8889633fa255facadd06a40ea7ef530880185f997bb1d5be15b11c14206f2cb367dc8c464e0561c905a2e4f5c728649
7
+ data.tar.gz: 64e11eb53ba02884144ef9f240d99bbea81136d6b4eba96ee8c7e7a9aec5c5d9abc5aabc619b7229ac7f4fc2fe95c9360407c7c307e2ef851f9cd1ef3d313103
data/bin/tiller CHANGED
@@ -8,7 +8,7 @@
8
8
  #
9
9
  # Mark Dastmalchi-Round <github@markround.com>
10
10
 
11
- VERSION = '0.7.2'
11
+ VERSION = '0.7.3'
12
12
 
13
13
  require 'erb'
14
14
  require 'ostruct'
@@ -45,7 +45,26 @@ class DefaultsDataSource < Tiller::DataSource
45
45
  end
46
46
 
47
47
  def values(template_name)
48
- @defaults_hash.key?(template_name) ? @defaults_hash[template_name] : Hash.new
48
+ # Backwards compatibility stuff here. This datasource didn't use to return target_values, so
49
+ # all values were just stored as top-level keys instead of under a separate config: block
50
+ # If a config: block exists, we should use that in preference to the top-level keys, but
51
+ # if not we still return them all so we don't break anything using the old behaviour.
52
+
53
+ if @defaults_hash.key?(template_name)
54
+ values = @defaults_hash[template_name]
55
+ values.key?('config') ? values['config'] : values
56
+ else
57
+ Hash.new
58
+ end
59
+ end
60
+
61
+ def target_values(template_name)
62
+ if @defaults_hash.key?(template_name)
63
+ values = @defaults_hash[template_name]
64
+ values.key?('target') ? values : Hash.new
65
+ else
66
+ Hash.new
67
+ end
49
68
  end
50
69
 
51
70
  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.7.2
4
+ version: 0.7.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Dastmalchi-Round
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-29 00:00:00.000000000 Z
11
+ date: 2015-10-28 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A tool to create configuration files from a variety of sources, particularly
14
14
  useful for Docker containers. See https://github.com/markround/tiller for examples