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 +4 -4
- data/lib/generate_puppetfile/bin.rb +16 -5
- data/lib/generate_puppetfile/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bd48413a63df74c9306f1d5c0915873b374dd8d2
|
4
|
+
data.tar.gz: 907880161d8a1fef4710d735e6dbe3ffb475317a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
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 ()
|
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.
|
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:
|
11
|
+
date: 2016-04-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|