librarian-puppet 4.0.0 → 4.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/librarian/puppet/cli.rb +1 -1
- data/lib/librarian/puppet/dsl.rb +4 -4
- data/lib/librarian/puppet/source/local.rb +3 -3
- data/lib/librarian/puppet/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4630e52bab2424fcbee097ec636d39c51787fceafbddaac759dbe4967265136e
|
4
|
+
data.tar.gz: c458a8baba3811240266cb9fa677adb6d907a2658984d0b135ae020f08f4eb7e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 238b72c61f10bd169aaa4526ee7b4bd1ae805a758e3d1e6c224bd721a421cb6b988f379c9187d54e197b5d0e52aaec6905ed8caae187bca0cd232d3226208313
|
7
|
+
data.tar.gz: 5ecb308dd61c40b861d3cbe71ff67173546f9e3ea59fcb8d89d48aaf311a4c0a1ef5a0794eed256bd305158763e237a38b58f56b388abb5f88b608a1f2befb73
|
data/lib/librarian/puppet/cli.rb
CHANGED
data/lib/librarian/puppet/dsl.rb
CHANGED
@@ -46,7 +46,7 @@ module Librarian
|
|
46
46
|
|
47
47
|
specfile ||= Proc.new if block_given?
|
48
48
|
|
49
|
-
if specfile.kind_of?(Pathname) and !File.
|
49
|
+
if specfile.kind_of?(Pathname) and !File.exist?(specfile)
|
50
50
|
debug { "Specfile #{specfile} not found, using defaults" } unless specfile.nil?
|
51
51
|
receiver(target).run(specfile, &default_specfile)
|
52
52
|
else
|
@@ -81,7 +81,7 @@ module Librarian
|
|
81
81
|
# implement the 'modulefile' syntax for Puppetfile
|
82
82
|
def modulefile
|
83
83
|
f = modulefile_path
|
84
|
-
raise Error, "Modulefile file does not exist: #{f}" unless File.
|
84
|
+
raise Error, "Modulefile file does not exist: #{f}" unless File.exist?(f)
|
85
85
|
File.read(f).lines.each do |line|
|
86
86
|
regexp = /\s*dependency\s+('|")([^'"]+)\1\s*(?:,\s*('|")([^'"]+)\3)?/
|
87
87
|
regexp =~ line && mod($2, $4)
|
@@ -91,10 +91,10 @@ module Librarian
|
|
91
91
|
# implement the 'metadata' syntax for Puppetfile
|
92
92
|
def metadata
|
93
93
|
f = working_path.join('metadata.json')
|
94
|
-
unless File.
|
94
|
+
unless File.exist?(f)
|
95
95
|
msg = "Metadata file does not exist: #{f}"
|
96
96
|
# try modulefile, in case we don't have a Puppetfile and we are using the default template
|
97
|
-
if File.
|
97
|
+
if File.exist?(modulefile_path)
|
98
98
|
modulefile
|
99
99
|
return
|
100
100
|
else
|
@@ -139,7 +139,7 @@ module Librarian
|
|
139
139
|
end
|
140
140
|
|
141
141
|
def modulefile?
|
142
|
-
File.
|
142
|
+
File.exist?(modulefile)
|
143
143
|
end
|
144
144
|
|
145
145
|
def metadata
|
@@ -147,7 +147,7 @@ module Librarian
|
|
147
147
|
end
|
148
148
|
|
149
149
|
def metadata?
|
150
|
-
File.
|
150
|
+
File.exist?(metadata)
|
151
151
|
end
|
152
152
|
|
153
153
|
def specfile
|
@@ -155,7 +155,7 @@ module Librarian
|
|
155
155
|
end
|
156
156
|
|
157
157
|
def specfile?
|
158
|
-
File.
|
158
|
+
File.exist?(specfile)
|
159
159
|
end
|
160
160
|
|
161
161
|
def install_perform_step_copy!(found_path, install_path)
|
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: 4.0.
|
4
|
+
version: 4.0.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: 2023-
|
12
|
+
date: 2023-04-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: librarianp
|