generate-puppetfile 0.9.7 → 0.9.8

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: 046880c28c4dd0c6b7e9a4c90e0c367d7c3ff98f
4
- data.tar.gz: f54a50e8fc4ea2cf60b7e3f1cf68f2a415ede968
3
+ metadata.gz: bd48413a63df74c9306f1d5c0915873b374dd8d2
4
+ data.tar.gz: 907880161d8a1fef4710d735e6dbe3ffb475317a
5
5
  SHA512:
6
- metadata.gz: 91f353684c05b1043a821ce7db214f073a380df2f99b105a05b1f23e18223048b749c11f2441578733ceb6fb4025f03d0bae36815c801cbf4ded8be18f279648
7
- data.tar.gz: b05c4d699fb020dd5d2fecfe85f66871459dc4cc0c73e7cd2418c6ef50cafe8c6b755bff4687fea7f7acadabd50d1ef2748ebad0e90a91b687630a7b057bce98
6
+ metadata.gz: 2ff6eec9ffbc414e01ae20e80451a576e682a78b4af3c58f81955895291b84165e03427f77521e97621a710579e933943460ea1b54aa6316c2fd17c2a23bd03b
7
+ data.tar.gz: d46f2292a2ab1d97317c4a36ae4699dce52106835043ce03642732434a0a7c79b6468ddcc7ea308cd4f5b4f3f16f054dc6496aacc0430d8987fedab970fbd316
@@ -186,13 +186,24 @@ Your Puppetfile has been generated. Copy and paste between the markers:
186
186
  def download_modules(module_list)
187
187
  puts "\nInstalling modules. This may take a few minutes.\n" unless @options[:silent]
188
188
  module_list.each do |name|
189
- command = "puppet module install #{name} "
190
- command += @modulepath + Silence
191
-
192
- puts "Calling '#{command}'" if @options[:debug]
193
- system(command)
189
+ if !_download_module(name)
190
+ $stderr.puts "There was a problem with the module name '#{name}'."
191
+ $stderr.puts " Check that module exists as you spelled it and/or your connectivity to the puppet forge."
192
+ exit 2
193
+ end
194
194
  end
195
195
  end
196
+
197
+ # Private: Download an individual module
198
+ #
199
+ # _download_module
200
+ def _download_module(name)
201
+ command = "puppet module install #{name} "
202
+ command += @modulepath + Silence
203
+
204
+ puts "Calling '#{command}'" if @options[:debug]
205
+ system(command)
206
+ end
196
207
 
197
208
  # Public: generate the list of modules in Puppetfile format from the @workspace
198
209
  def generate_module_output ()
@@ -1,3 +1,3 @@
1
1
  module GeneratePuppetfile
2
- VERSION = '0.9.7'
2
+ VERSION = '0.9.8'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: generate-puppetfile
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.7
4
+ version: 0.9.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rob Nelson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-26 00:00:00.000000000 Z
11
+ date: 2016-04-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake