librarian-puppet 2.1.0 → 2.1.1

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: 0a7c6bf3dfb88d0d44e3c718e302167e04508fc2
4
- data.tar.gz: d5affa81eab4acc5aff6b93ee39bfbe3e97a2e85
3
+ metadata.gz: 004c9886df1b5f4d003a64f076c2e66bfa349fc4
4
+ data.tar.gz: a473d2c6cf25a3eb249e24bc6615ab270598fd50
5
5
  SHA512:
6
- metadata.gz: d4de7b61cffafdc51b4e46bcf7c42fd88da267620804ce52f6c55e85724e0993f71756720530ce47a7535122f13158cc5baba38485f9ccd5dc8c0c138bacb437
7
- data.tar.gz: 743f2f84ad57d0041656e28824e59e906fdc5ab717d866ca09f151c1f1ca22fadf45acb49317f0c48bd69ac28196d71d5858aa271672fcef7491f856ffa89b95
6
+ metadata.gz: 3103eb328eeffd401c6cfe890b44f2a59b211b67d99f01c10371460f152e8e0149f362b909d136b918c664e52be950cf3c2147729739a759d5ed660f4a223a83
7
+ data.tar.gz: aa66afd24a2b72e50a8690ab20ec5828f95e3eba3b4866b6501b32eaf9c37909317482385607982bf9eb1c9f7547f82c769c67099315177c5c88034c2d08c840
data/README.md CHANGED
@@ -88,6 +88,10 @@ This declares that we want to use the official Puppet Labs Forge as our default
88
88
  source when pulling down modules. If you run your own local forge, you may
89
89
  want to change this.
90
90
 
91
+ metadata
92
+
93
+ Download all the dependencies listed in your `metadata.json` or `Modulefile` from the Puppet Forge.
94
+
91
95
  mod 'puppetlabs-razor'
92
96
 
93
97
  Pull in the latest version of the Puppet Labs Razor module from the default
@@ -259,7 +263,7 @@ and transforming it: replace hyphens (`-`) with underscores (`_`) and periods
259
263
 
260
264
  Configuration affects how various commands operate.
261
265
 
262
- * The `path` config sets the cookbooks directory to install to. If a relative
266
+ * The `path` config sets the directory to install to. If a relative
263
267
  path, it is relative to the directory containing the `Puppetfile`. The
264
268
  equivalent environment variable is `LIBRARIAN_PUPPET_PATH`.
265
269
 
@@ -16,10 +16,10 @@ module Librarian
16
16
  return @@puppet_version unless @@puppet_version.nil?
17
17
 
18
18
  begin
19
- @@puppet_version = Librarian::Posix.run!(%W{puppet --version})
20
- rescue Librarian::Posix::CommandFailure => error
19
+ @@puppet_version = Librarian::Posix.run!(%W{puppet --version}).strip
20
+ rescue Errno::ENOENT, Librarian::Posix::CommandFailure => error
21
21
  msg = "Unable to load puppet. Please install it using native packages for your platform (eg .deb, .rpm, .dmg, etc)."
22
- msg += "\npuppet --version returned #{error.status}"
22
+ msg += "\npuppet --version returned #{error.status}" if error.respond_to? :status
23
23
  msg += "\n#{error.message}" unless error.message.nil?
24
24
  $stderr.puts msg
25
25
  exit 1
@@ -1,3 +1,5 @@
1
+ require 'librarian/action/install'
2
+
1
3
  module Librarian
2
4
  module Puppet
3
5
  module Action
@@ -1,3 +1,5 @@
1
+ require 'librarian/action/resolve'
2
+
1
3
  module Librarian
2
4
  module Puppet
3
5
  module Action
@@ -135,7 +135,7 @@ module Librarian
135
135
  min_version = Gem::Version.create('2.7.13')
136
136
 
137
137
  if Librarian::Puppet.puppet_gem_version < min_version
138
- raise Error, "To get modules from the forge, we use the puppet faces module command. For this you need at least puppet version 2.7.13 and you have #{puppet_version}"
138
+ raise Error, "To get modules from the forge, we use the puppet faces module command. For this you need at least puppet version 2.7.13 and you have #{Librarian::Puppet.puppet_version}"
139
139
  end
140
140
  end
141
141
 
@@ -1,5 +1,5 @@
1
1
  module Librarian
2
2
  module Puppet
3
- VERSION = "2.1.0"
3
+ VERSION = "2.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: librarian-puppet
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Sharpe
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-03-04 00:00:00.000000000 Z
12
+ date: 2015-05-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: librarianp
@@ -17,14 +17,14 @@ dependencies:
17
17
  requirements:
18
18
  - - ">="
19
19
  - !ruby/object:Gem::Version
20
- version: 0.5.1
20
+ version: 0.6.3
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - ">="
26
26
  - !ruby/object:Gem::Version
27
- version: 0.5.1
27
+ version: 0.6.3
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: rsync
30
30
  requirement: !ruby/object:Gem::Requirement
@@ -43,16 +43,16 @@ dependencies:
43
43
  name: puppet_forge
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
- - - ">="
46
+ - - "~>"
47
47
  - !ruby/object:Gem::Version
48
- version: '0'
48
+ version: '1.0'
49
49
  type: :runtime
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
- - - ">="
53
+ - - "~>"
54
54
  - !ruby/object:Gem::Version
55
- version: '0'
55
+ version: '1.0'
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: rake
58
58
  requirement: !ruby/object:Gem::Requirement
@@ -225,7 +225,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
225
225
  version: '0'
226
226
  requirements: []
227
227
  rubyforge_project:
228
- rubygems_version: 2.4.3
228
+ rubygems_version: 2.4.6
229
229
  signing_key:
230
230
  specification_version: 4
231
231
  summary: Bundler for your Puppet modules