kafo_parsers 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/kafo_parsers/puppet_strings_module_parser.rb +9 -7
- data/lib/kafo_parsers/version.rb +1 -1
- metadata +7 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 62b061db2fb2d7f269541ff5a7865f7482703fb4766432e3117980d51fb2cc0e
|
4
|
+
data.tar.gz: 2e6135c7beb9ccb754008f0ea1842c67a82b27cd8bcb96a43960f6e415f1a640
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e9ada8c7ac628dc9631a97cd9587200e2f5320449919ab7954f41c53b112c5115e436d2880fd5158bde2293538d7521c9c7b235a63fc295eeaf0155514c54c82
|
7
|
+
data.tar.gz: 7adf7c7d9c4851c0bc5668dfd1b34adc0e0792dccf30d4e83faf62f915cef876913cd6fe60904ed68073ee215c4a361dec99d04d034738b5346906a6e7523175
|
@@ -56,15 +56,17 @@ module KafoParsers
|
|
56
56
|
self
|
57
57
|
end
|
58
58
|
|
59
|
-
# AIO and system default puppet bins are tested for existence, fallback to just `puppet` otherwise
|
60
59
|
def self.puppet_bin
|
61
|
-
@puppet_bin ||=
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
60
|
+
@puppet_bin ||= self.find_puppet_bin
|
61
|
+
end
|
62
|
+
|
63
|
+
# AIO and system default puppet bins are tested for existence, fallback to just `puppet` otherwise
|
64
|
+
def self.find_puppet_bin
|
65
|
+
found_puppet_path = (::ENV['PATH'].split(File::PATH_SEPARATOR) + ['/opt/puppetlabs/bin']).find do |path|
|
66
|
+
binary = File.join(path, 'puppet')
|
67
|
+
binary if File.executable?(binary) && !File.symlink?(binary)
|
67
68
|
end
|
69
|
+
found_puppet_path.nil? ? 'puppet' : File.join(found_puppet_path, 'puppet')
|
68
70
|
end
|
69
71
|
|
70
72
|
def data_type
|
data/lib/kafo_parsers/version.rb
CHANGED
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kafo_parsers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marek Hulan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-08-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -145,8 +145,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
145
145
|
- !ruby/object:Gem::Version
|
146
146
|
version: '0'
|
147
147
|
requirements: []
|
148
|
-
|
149
|
-
rubygems_version: 2.7.6.2
|
148
|
+
rubygems_version: 3.1.2
|
150
149
|
signing_key:
|
151
150
|
specification_version: 4
|
152
151
|
summary: Puppet module parsers
|