tiller 0.6.1 → 0.6.2

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: de1c0f1f8381638d2568818134f335b4184a0b1c
4
- data.tar.gz: 3613aa2b175fa801b671fab200b234153bfc698b
3
+ metadata.gz: 226f7774206435ec5cfa4e785b2a7400a65571c4
4
+ data.tar.gz: a80f2572702cde9f298831b956e33ac873905219
5
5
  SHA512:
6
- metadata.gz: ff24474771f4041cede5a6fdedf6ee47c63f43288a57e9fa77a67f2472257f55d9e14cd496469ecf2f78a596b5f964a9d859721363f9f957c0c18b0d20a42039
7
- data.tar.gz: de08322c4b9ecbf1cc2976e0a65fea61a1b8971c26caf3b01c0b90b3e7ae7dce35946b20b44e79b7ff3ad96fc391432ea8b2d5692ed996da31c0ba0a5ef0a8b9
6
+ metadata.gz: 2a7add80a4a3d5ffd317ff45bb3a778097f5de902210655d01ef03f982d07e12c44de647cdbd460b642cfca4e366e0a03c37eb1a63bb4eab43cf781727b4fe26
7
+ data.tar.gz: e05a6e6ba7a14a255a22ff3ab16e1d6a88d0f3266b9b6cf3bb3113ab98002be50292ba611437df0b1c66ec8b27c63d509ffe139da82c3fa238b16e386824da47
data/bin/tiller CHANGED
@@ -8,7 +8,7 @@
8
8
  #
9
9
  # Mark Dastmalchi-Round <github@markround.com>
10
10
 
11
- VERSION = '0.6.1'
11
+ VERSION = '0.6.2'
12
12
 
13
13
  require 'erb'
14
14
  require 'ostruct'
@@ -17,14 +17,17 @@ class DefaultsDataSource < Tiller::DataSource
17
17
  @defaults_hash = Hash.new
18
18
 
19
19
  # Read defaults in from defaults file
20
+ # Handle empty files - if YAML didn't parse, it returns false so we skip them
20
21
  if File.file? defaults_file
21
- @defaults_hash.deep_merge!(YAML.load(open(defaults_file)))
22
+ yaml = YAML.load(open(defaults_file))
23
+ @defaults_hash.deep_merge!(yaml) if yaml != false
22
24
  end
23
25
 
24
26
  # If we have YAML files in defaults.d, also merge them
25
27
  if File.directory? defaults_dir
26
28
  Dir.glob(File.join(defaults_dir,'*.yaml')).each do |d|
27
- @defaults_hash.deep_merge!(YAML.load(open(d)))
29
+ yaml = YAML.load(open(d))
30
+ @defaults_hash.deep_merge!() if yaml != false
28
31
  end
29
32
  end
30
33
  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.6.1
4
+ version: 0.6.2
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-07-15 00:00:00.000000000 Z
11
+ date: 2015-07-20 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