puppet-runner 0.0.17 → 0.0.18

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: 9eca6fb0e04dad6979e8a7fd8053f949c94905a9
4
- data.tar.gz: a496e227414fdcbe50f3cf98775d851940f92c25
3
+ metadata.gz: 5bbb45769852b12c6bf2b83d523e33df37ae11e9
4
+ data.tar.gz: 047aad5ff68eb41b049047c1650f8777acfacc3c
5
5
  SHA512:
6
- metadata.gz: 124abe27173e89ec9a29e9e0a3f281050d7cb1711b04048b06cccf6cb41b2a913c324089c0101b0e66d90e1c0608e90a08da70e805820b245f4e47075bf2ee9a
7
- data.tar.gz: adcd78eb76c634d0eb54f644df2fd66847f8891037d20f453ea7f2a6abecbff163469fde2f99ae40dd708839a04623e0e3de49359cbe5de7cb69d3fece06e995
6
+ metadata.gz: bcceeb628caf19858c9c8486edad72001f9695d9b8ddafc3da10c9b407e54ce5a4c52812c88af876dee24d416aff200971d6f2851c4fe3b18ce46f0081ecd9ee
7
+ data.tar.gz: d03770227658b51eebe1e89ab9d8225185e07bb19448b25d1f102f50f3e9c650b83ed1f4ad777b7d7dcd4b0465a256ffd01d48f71e7764db4d228f6ac109654f
data/bin/puppet-runner CHANGED
@@ -118,16 +118,15 @@ if options['all'] || options['prepare']
118
118
  templates_dir = path_join_glob(templates, "templates")
119
119
  def_facts_dir = path_join_glob(templates, "defaults")
120
120
 
121
- debug "Reading #{config_file_path}"
122
- if File.file? config_file_path and File.directory? templates_dir and File.directory? def_facts_dir and File.directory? dest_dir and File.directory? facts_dest_dir and File.file? puppetfile_config_path
123
- config = YAML.load_file(config_file_path)
124
- else
125
- abort "Can not find config file #{config_file_path}. \
126
- or #{templates_dir}. \
127
- or #{def_facts_dir}. \
128
- or #{dest_dir}. \
129
- or #{facts_dest_dir}.".red
130
- end
121
+ debug "Reading #{config_file_path}"
122
+ abort "Could not find #{config_file_path}".red if !File.file? config_file_path
123
+ abort "Could not find #{templates_dir}".red if !File.directory? templates_dir
124
+ abort "Could not find #{def_facts_dir}".red if !File.directory? def_facts_dir
125
+ abort "Could not find #{dest_dir}".red if !File.directory? dest_dir
126
+ abort "Could not find #{facts_dest_dir}".red if !File.directory? facts_dest_dir
127
+ abort "Could not find #{puppetfile_config_path}".red if !File.file? puppetfile_config_path
128
+
129
+ config = YAML.load_file(config_file_path)
131
130
 
132
131
  functionalities = config["functionalities"]
133
132
 
@@ -4,8 +4,8 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "puppet-runner"
7
- spec.version = "0.0.17"
8
- spec.authors = ["Martin Brehovsky"]
7
+ spec.version = "0.0.18"
8
+ spec.authors = ["Martin Brehovsky", "Matthew Hope"]
9
9
  spec.email = ["mbrehovsky@adaptavist.com"]
10
10
  spec.summary = %q{Preprocessor for hiera config}
11
11
  spec.description = %q{Loads user config and created result hiera config and executes puppet apply with it.}
metadata CHANGED
@@ -1,14 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppet-runner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.17
4
+ version: 0.0.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Brehovsky
8
+ - Matthew Hope
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2017-02-14 00:00:00.000000000 Z
12
+ date: 2017-05-15 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: bundler