puppet-debugger 0.15.2 → 0.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitlab-ci.yml +13 -21
- data/.rubocop.yml +2 -3
- data/CHANGELOG.md +4 -0
- data/lib/awesome_print/ext/awesome_puppet.rb +12 -0
- data/lib/puppet-debugger/support/environment.rb +7 -1
- data/lib/puppet-debugger/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9873e0a4a8f2dc1ebfaafafa8675e2e942a8e6c4591dfde9aa6400c494c1adce
|
4
|
+
data.tar.gz: 310d779ee5bbb993e16ac74d4856ab73a8c29a4bef12205df90dae79b450d099
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9f2c1739d8e4a05c5b4b001819476fc8af16c7ee30d05d6616ade4602ea95755f8ef6bf1a1869f50e89ae61789325d23ab2be2984c7ab8167247e57acffb25ad
|
7
|
+
data.tar.gz: 151294ae8d704da59e87180288b8e2da87ad8564fe155676653f9c3594f5883fa7f3da541f9b7ab617f87483fc3d31d12ac756ef346f2a343b0921e56c90b050
|
data/.gitlab-ci.yml
CHANGED
@@ -86,6 +86,9 @@ bump_and_tag:
|
|
86
86
|
.ruby_26: &ruby26
|
87
87
|
image: ruby:2.6
|
88
88
|
|
89
|
+
.ruby_27: &ruby27
|
90
|
+
image: ruby:2.7
|
91
|
+
|
89
92
|
gem_production:
|
90
93
|
image: ruby:2.5
|
91
94
|
tags:
|
@@ -98,44 +101,33 @@ gem_production:
|
|
98
101
|
only:
|
99
102
|
- tags
|
100
103
|
|
101
|
-
puppet_410_ruby21:
|
102
|
-
variables:
|
103
|
-
PUPPET_GEM_VERSION: "~> 4.10"
|
104
|
-
<<: *puppet_job_def
|
105
|
-
<<: *ruby21
|
106
|
-
|
107
104
|
puppet_410_ruby24:
|
108
105
|
variables:
|
109
106
|
PUPPET_GEM_VERSION: "~> 4.10"
|
110
107
|
<<: *puppet_job_def
|
111
108
|
<<: *ruby24
|
112
109
|
|
113
|
-
|
110
|
+
puppet_5_ruby24:
|
114
111
|
variables:
|
115
112
|
PUPPET_GEM_VERSION: "~> 5.5"
|
116
113
|
<<: *puppet_job_def
|
117
114
|
<<: *ruby24
|
118
115
|
|
119
|
-
|
120
|
-
variables:
|
121
|
-
PUPPET_GEM_VERSION: "~> 6.3"
|
122
|
-
<<: *puppet_job_def
|
123
|
-
<<: *ruby25
|
124
|
-
|
125
|
-
puppet_64_ruby25:
|
116
|
+
puppet_6_ruby25:
|
126
117
|
variables:
|
127
|
-
PUPPET_GEM_VERSION: "~> 6.
|
118
|
+
PUPPET_GEM_VERSION: "~> 6.0"
|
128
119
|
<<: *puppet_job_def
|
129
120
|
<<: *ruby25
|
130
121
|
|
131
|
-
|
122
|
+
puppet_6_ruby26:
|
132
123
|
variables:
|
133
|
-
PUPPET_GEM_VERSION: "~> 6.
|
124
|
+
PUPPET_GEM_VERSION: "~> 6.0"
|
134
125
|
<<: *puppet_job_def
|
135
|
-
<<: *
|
126
|
+
<<: *ruby26
|
136
127
|
|
137
|
-
|
128
|
+
puppet_6_ruby27:
|
129
|
+
allow_failure: true
|
138
130
|
variables:
|
139
|
-
PUPPET_GEM_VERSION: "~>
|
131
|
+
PUPPET_GEM_VERSION: "~> 6.0"
|
140
132
|
<<: *puppet_job_def
|
141
|
-
<<: *
|
133
|
+
<<: *ruby27
|
data/.rubocop.yml
CHANGED
@@ -111,14 +111,13 @@ Style/NumericPredicate:
|
|
111
111
|
## Offense count: 152
|
112
112
|
## Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives.
|
113
113
|
## URISchemes: http, https
|
114
|
-
Metrics/LineLength:
|
115
|
-
|
114
|
+
# Metrics/LineLength:
|
115
|
+
# Max: 586
|
116
116
|
|
117
117
|
## Offense count: 30
|
118
118
|
## Configuration parameters: CountComments.
|
119
119
|
#Metrics/MethodLength:
|
120
120
|
# Max: 100
|
121
|
-
#
|
122
121
|
## Offense count: 2
|
123
122
|
## Configuration parameters: CountComments.
|
124
123
|
#Metrics/ModuleLength:
|
data/CHANGELOG.md
CHANGED
@@ -34,10 +34,22 @@ module AwesomePrint
|
|
34
34
|
cast = :puppet_resource
|
35
35
|
elsif /Puppet::Pops::Types/.match(object.class.to_s)
|
36
36
|
cast = :puppet_type
|
37
|
+
elsif /Bolt::/.match(object.class.to_s)
|
38
|
+
cast = :bolt_type
|
37
39
|
end
|
38
40
|
cast
|
39
41
|
end
|
40
42
|
|
43
|
+
def awesome_bolt_type(object)
|
44
|
+
if object.class.to_s.include?('Result')
|
45
|
+
object.to_data.ai
|
46
|
+
elsif object.is_a?(::Bolt::Target)
|
47
|
+
object.to_h.merge(object.detail).ai
|
48
|
+
else
|
49
|
+
object.ai
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
41
53
|
def awesome_puppet_resource(object)
|
42
54
|
return '' if object.nil?
|
43
55
|
resource_object = object.to_ral
|
@@ -17,7 +17,13 @@ module PuppetDebugger
|
|
17
17
|
# add the puppet-debugger directory so we can load any defined functions
|
18
18
|
dirs << File.join(Puppet[:environmentpath], default_puppet_env_name, 'modules') unless Puppet[:environmentpath].empty?
|
19
19
|
dirs << Puppet.settings[:basemodulepath].split(File::PATH_SEPARATOR)
|
20
|
-
dirs
|
20
|
+
dirs << bolt_modules
|
21
|
+
dirs.flatten.compact
|
22
|
+
end
|
23
|
+
|
24
|
+
def bolt_modules
|
25
|
+
spec = Gem::Specification.latest_specs.find { |spec| spec.name.eql?('bolt') }
|
26
|
+
bolt_modules = File.join(spec.full_gem_path, 'bolt-modules') if spec
|
21
27
|
end
|
22
28
|
|
23
29
|
# returns all the modules paths defined in the environment
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: puppet-debugger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.16.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Corey Osman
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-04-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: table_print
|
@@ -288,7 +288,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
288
288
|
- !ruby/object:Gem::Version
|
289
289
|
version: '0'
|
290
290
|
requirements: []
|
291
|
-
rubygems_version: 3.
|
291
|
+
rubygems_version: 3.1.2
|
292
292
|
signing_key:
|
293
293
|
specification_version: 4
|
294
294
|
summary: A repl based debugger for the puppet language
|