librarian-puppet 0.9.14 → 0.9.15
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 +8 -8
- data/lib/librarian/puppet.rb +3 -2
- data/lib/librarian/puppet/source/forge.rb +2 -2
- data/lib/librarian/puppet/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NzhlYjZhM2FkYjljZjdiMTMzMTRkODY5ZGUzNTBmNTdmNDMwM2JiYw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OGM1ODBkNzUxNzk1MjQyNDk3NzI4NDg5OWE0ZmVjZjRlNzc2ZTM5OQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZDRlYzU1NzExYTc2MDYzODZmYWE3NWE3ODliNmIyYjg0MzU1ZmRhMTZhMGUz
|
10
|
+
NGRiNzQyMjljODFjMDk3YzI5ZDk5NjdhYTBhZGVmZjJhZmUyMWYxMGM1YTVl
|
11
|
+
MGEyMDYxYjJlMTMwYzFmNGJhNDI5ZDdjMGNhZTQ3ODRmOWU3ZGU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZmE5N2ExNTQwYmI4OWNmMDkyZjYyYWVjNjJmYTk0MzY1YWIwZjlkNWI2MTAy
|
14
|
+
MzAzYTk2M2VlMWU2MDYyNDU5YWFjNjFhNjdhMTk3NjJjMWM2OTdlNDRlZjlm
|
15
|
+
NDFkMmJkYzc4ZWY4YmYwODg3NDJiYjgzMzgzZjc2OWI5ZjA1NzY=
|
data/lib/librarian/puppet.rb
CHANGED
@@ -12,14 +12,15 @@ begin
|
|
12
12
|
if RUBY_VERSION < '1.9'
|
13
13
|
# Ruby 1.8.x backport of popen3 doesn't allow the 'env' hash argument
|
14
14
|
# Not sanitizing the environment for the moment.
|
15
|
-
Open3.popen3('puppet --version') {|stdin, stdout, stderr, wait_thr|
|
15
|
+
Open3.popen3('puppet --version') { |stdin, stdout, stderr, wait_thr|
|
16
16
|
pid = wait_thr.pid # pid of the started process.
|
17
17
|
out = stdout.read
|
18
18
|
err = stderr.read
|
19
19
|
status = wait_thr.value # Process::Status object returned.
|
20
20
|
}
|
21
21
|
else
|
22
|
-
|
22
|
+
env_reset = {'GEM_PATH' => nil, 'BUNDLE_APP_CONFIG' => nil, 'BUNDLE_CONFIG' => nil, 'BUNDLE_GEMFILE' => nil}
|
23
|
+
Open3.popen3(env_reset, 'puppet --version') { |stdin, stdout, stderr, wait_thr|
|
23
24
|
pid = wait_thr.pid # pid of the started process.
|
24
25
|
out = stdout.read
|
25
26
|
err = stderr.read
|
@@ -104,7 +104,7 @@ module Librarian
|
|
104
104
|
target = vendored?(name, version) ? vendored_path(name, version) : name
|
105
105
|
|
106
106
|
|
107
|
-
command = "puppet module install --version #{version} --target-dir '#{path}' --module_repository '#{source}' --modulepath '#{path}' --ignore-dependencies '#{target}'"
|
107
|
+
command = "puppet module install --version #{version} --target-dir '#{path}' --module_repository '#{source}' --modulepath '#{path}' --module_working_dir '#{path}' --ignore-dependencies '#{target}'"
|
108
108
|
debug { "Executing puppet module install for #{name} #{version}" }
|
109
109
|
output = `#{command}`
|
110
110
|
|
@@ -174,7 +174,7 @@ module Librarian
|
|
174
174
|
path = "#{path}&version=#{version}" unless version.nil?
|
175
175
|
url = "#{base_url}/#{path}"
|
176
176
|
debug { "Querying Forge API for module #{name}#{" and version #{version}" unless version.nil?}: #{url}" }
|
177
|
-
|
177
|
+
|
178
178
|
begin
|
179
179
|
data = open(url) {|f| f.read}
|
180
180
|
JSON.parse(data)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: librarian-puppet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tim Sharpe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-03-
|
11
|
+
date: 2014-03-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: librarian
|
@@ -163,22 +163,22 @@ files:
|
|
163
163
|
- LICENSE
|
164
164
|
- README.md
|
165
165
|
- bin/librarian-puppet
|
166
|
+
- lib/librarian/puppet.rb
|
166
167
|
- lib/librarian/puppet/cli.rb
|
167
168
|
- lib/librarian/puppet/dsl.rb
|
168
169
|
- lib/librarian/puppet/environment.rb
|
169
170
|
- lib/librarian/puppet/extension.rb
|
170
171
|
- lib/librarian/puppet/lockfile/parser.rb
|
171
172
|
- lib/librarian/puppet/requirement.rb
|
173
|
+
- lib/librarian/puppet/source.rb
|
172
174
|
- lib/librarian/puppet/source/forge.rb
|
173
175
|
- lib/librarian/puppet/source/git.rb
|
174
176
|
- lib/librarian/puppet/source/githubtarball.rb
|
175
177
|
- lib/librarian/puppet/source/local.rb
|
176
178
|
- lib/librarian/puppet/source/path.rb
|
177
|
-
- lib/librarian/puppet/source.rb
|
178
179
|
- lib/librarian/puppet/templates/Puppetfile
|
179
180
|
- lib/librarian/puppet/util.rb
|
180
181
|
- lib/librarian/puppet/version.rb
|
181
|
-
- lib/librarian/puppet.rb
|
182
182
|
homepage: https://github.com/rodjek/librarian-puppet
|
183
183
|
licenses:
|
184
184
|
- MIT
|
@@ -199,7 +199,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
199
199
|
version: '0'
|
200
200
|
requirements: []
|
201
201
|
rubyforge_project:
|
202
|
-
rubygems_version: 2.
|
202
|
+
rubygems_version: 2.2.2
|
203
203
|
signing_key:
|
204
204
|
specification_version: 4
|
205
205
|
summary: Bundler for your Puppet modules
|