chef-apply 0.2.6 → 0.2.7
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 +4 -4
- data/Gemfile.lock +25 -23
- data/lib/chef_apply/cli/validation.rb +1 -1
- data/lib/chef_apply/target_resolver.rb +1 -1
- data/lib/chef_apply/version.rb +1 -1
- data/spec/unit/target_resolver_spec.rb +1 -1
- data/spec/unit/telemeter_spec.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: 3e2f46675530f16ea27c8c904908a8ee62517fd2a99f4867144b8c1fd278dbfb
|
|
4
|
+
data.tar.gz: 8685d7c464efb4e1e82e6bd622b6ddaf2a0c69cc565bfe33eb96b0eb8401bf0e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8bc8196cf13a7c3267a8e6a6ca510fde2d2546cdbab7feb22be96c028f42bde99b40fbf5756af0f494bc336cc3b8d9026f647a7b456251d67a4bae755939f8f5
|
|
7
|
+
data.tar.gz: ce2a6f9260a7ae8fe6022bdd9f957e64a44798de34467ea4b74a0950a438c9b1a978bd8f002f58323c19ee4d09daf169fd75b674e2d3311817bc75838d3431d2
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
chef-apply (0.2.
|
|
4
|
+
chef-apply (0.2.7)
|
|
5
5
|
chef (>= 14.0)
|
|
6
6
|
chef-dk (>= 3.0)
|
|
7
7
|
chef-telemetry
|
|
@@ -21,13 +21,13 @@ GEM
|
|
|
21
21
|
addressable (2.5.2)
|
|
22
22
|
public_suffix (>= 2.0.2, < 4.0)
|
|
23
23
|
ast (2.4.0)
|
|
24
|
-
aws-sdk (2.11.
|
|
25
|
-
aws-sdk-resources (= 2.11.
|
|
26
|
-
aws-sdk-core (2.11.
|
|
24
|
+
aws-sdk (2.11.209)
|
|
25
|
+
aws-sdk-resources (= 2.11.209)
|
|
26
|
+
aws-sdk-core (2.11.209)
|
|
27
27
|
aws-sigv4 (~> 1.0)
|
|
28
28
|
jmespath (~> 1.0)
|
|
29
|
-
aws-sdk-resources (2.11.
|
|
30
|
-
aws-sdk-core (= 2.11.
|
|
29
|
+
aws-sdk-resources (2.11.209)
|
|
30
|
+
aws-sdk-core (= 2.11.209)
|
|
31
31
|
aws-sigv4 (1.0.3)
|
|
32
32
|
azure_graph_rbac (0.17.0)
|
|
33
33
|
ms_rest_azure (~> 0.11.0)
|
|
@@ -39,10 +39,10 @@ GEM
|
|
|
39
39
|
debug_inspector (>= 0.0.1)
|
|
40
40
|
builder (3.2.3)
|
|
41
41
|
byebug (10.0.2)
|
|
42
|
-
chef (14.
|
|
42
|
+
chef (14.9.13)
|
|
43
43
|
addressable
|
|
44
44
|
bundler (>= 1.10)
|
|
45
|
-
chef-config (= 14.
|
|
45
|
+
chef-config (= 14.9.13)
|
|
46
46
|
chef-zero (>= 13.0)
|
|
47
47
|
diff-lcs (~> 1.2, >= 1.2.4)
|
|
48
48
|
erubis (~> 2.7)
|
|
@@ -50,7 +50,7 @@ GEM
|
|
|
50
50
|
ffi-yajl (~> 2.2)
|
|
51
51
|
highline (~> 1.6, >= 1.6.9)
|
|
52
52
|
iniparse (~> 1.4)
|
|
53
|
-
mixlib-archive (
|
|
53
|
+
mixlib-archive (>= 0.4, < 2.0)
|
|
54
54
|
mixlib-authentication (~> 2.1)
|
|
55
55
|
mixlib-cli (~> 1.7)
|
|
56
56
|
mixlib-log (~> 2.0, >= 2.0.3)
|
|
@@ -69,7 +69,7 @@ GEM
|
|
|
69
69
|
specinfra (~> 2.10)
|
|
70
70
|
syslog-logger (~> 1.6)
|
|
71
71
|
uuidtools (~> 2.1.5)
|
|
72
|
-
chef-config (14.
|
|
72
|
+
chef-config (14.9.13)
|
|
73
73
|
addressable
|
|
74
74
|
fuzzyurl
|
|
75
75
|
mixlib-config (>= 2.2.12, < 3.0)
|
|
@@ -97,7 +97,7 @@ GEM
|
|
|
97
97
|
winrm (~> 2.0)
|
|
98
98
|
winrm-elevated (~> 1.0)
|
|
99
99
|
winrm-fs (~> 1.0)
|
|
100
|
-
chef-telemetry (0.1.
|
|
100
|
+
chef-telemetry (0.1.8)
|
|
101
101
|
chef-config
|
|
102
102
|
concurrent-ruby (~> 1.0)
|
|
103
103
|
ffi-yajl (~> 2.2)
|
|
@@ -111,8 +111,8 @@ GEM
|
|
|
111
111
|
cheffish (14.0.4)
|
|
112
112
|
chef-zero (~> 14.0)
|
|
113
113
|
net-ssh
|
|
114
|
-
chefstyle (0.
|
|
115
|
-
rubocop (= 0.
|
|
114
|
+
chefstyle (0.12.0)
|
|
115
|
+
rubocop (= 0.62.0)
|
|
116
116
|
citrus (3.0.2)
|
|
117
117
|
coderay (1.1.2)
|
|
118
118
|
concurrent-ruby (1.1.4)
|
|
@@ -174,6 +174,7 @@ GEM
|
|
|
174
174
|
inifile (3.0.0)
|
|
175
175
|
iniparse (1.4.4)
|
|
176
176
|
ipaddress (0.8.3)
|
|
177
|
+
jaro_winkler (1.5.2)
|
|
177
178
|
jmespath (1.4.0)
|
|
178
179
|
json (2.1.0)
|
|
179
180
|
jwt (2.1.0)
|
|
@@ -239,8 +240,8 @@ GEM
|
|
|
239
240
|
wmi-lite (~> 1.0)
|
|
240
241
|
os (1.0.0)
|
|
241
242
|
paint (1.0.1)
|
|
242
|
-
parallel (1.
|
|
243
|
-
parser (2.
|
|
243
|
+
parallel (1.13.0)
|
|
244
|
+
parser (2.6.0.0)
|
|
244
245
|
ast (~> 2.4.0)
|
|
245
246
|
pastel (0.7.2)
|
|
246
247
|
equatable (~> 0.5.0)
|
|
@@ -263,7 +264,7 @@ GEM
|
|
|
263
264
|
r18n-core (= 3.2.0)
|
|
264
265
|
rack (2.0.6)
|
|
265
266
|
rainbow (3.0.0)
|
|
266
|
-
rake (12.3.
|
|
267
|
+
rake (12.3.2)
|
|
267
268
|
representable (3.0.4)
|
|
268
269
|
declarative (< 0.1.0)
|
|
269
270
|
declarative-option (< 0.2.0)
|
|
@@ -288,13 +289,14 @@ GEM
|
|
|
288
289
|
rspec_junit_formatter (0.2.3)
|
|
289
290
|
builder (< 4)
|
|
290
291
|
rspec-core (>= 2, < 4, != 2.12.0)
|
|
291
|
-
rubocop (0.
|
|
292
|
+
rubocop (0.62.0)
|
|
293
|
+
jaro_winkler (~> 1.5.1)
|
|
292
294
|
parallel (~> 1.10)
|
|
293
|
-
parser (>= 2.5)
|
|
295
|
+
parser (>= 2.5, != 2.5.1.1)
|
|
294
296
|
powerpack (~> 0.1)
|
|
295
297
|
rainbow (>= 2.2.2, < 4.0)
|
|
296
298
|
ruby-progressbar (~> 1.7)
|
|
297
|
-
unicode-display_width (~> 1.
|
|
299
|
+
unicode-display_width (~> 1.4.0)
|
|
298
300
|
ruby-progressbar (1.10.0)
|
|
299
301
|
rubyntlm (0.6.2)
|
|
300
302
|
rubyzip (1.2.2)
|
|
@@ -318,7 +320,7 @@ GEM
|
|
|
318
320
|
solve (4.0.2)
|
|
319
321
|
molinillo (~> 0.6)
|
|
320
322
|
semverse (>= 1.1, < 4.0)
|
|
321
|
-
specinfra (2.76.
|
|
323
|
+
specinfra (2.76.9)
|
|
322
324
|
net-scp
|
|
323
325
|
net-ssh (>= 2.7)
|
|
324
326
|
net-telnet (= 0.1.1)
|
|
@@ -353,7 +355,7 @@ GEM
|
|
|
353
355
|
unf (0.1.4)
|
|
354
356
|
unf_ext
|
|
355
357
|
unf_ext (0.0.7.5)
|
|
356
|
-
unicode-display_width (1.4.
|
|
358
|
+
unicode-display_width (1.4.1)
|
|
357
359
|
uuidtools (2.1.5)
|
|
358
360
|
winrm (2.3.1)
|
|
359
361
|
builder (>= 2.1.2)
|
|
@@ -372,7 +374,7 @@ GEM
|
|
|
372
374
|
logging (>= 1.6.1, < 3.0)
|
|
373
375
|
rubyzip (~> 1.1)
|
|
374
376
|
winrm (~> 2.0)
|
|
375
|
-
wmi-lite (1.0.
|
|
377
|
+
wmi-lite (1.0.2)
|
|
376
378
|
|
|
377
379
|
PLATFORMS
|
|
378
380
|
ruby
|
|
@@ -390,4 +392,4 @@ DEPENDENCIES
|
|
|
390
392
|
simplecov
|
|
391
393
|
|
|
392
394
|
BUNDLED WITH
|
|
393
|
-
1.17.
|
|
395
|
+
1.17.3
|
|
@@ -20,7 +20,7 @@ require "chef_apply/error"
|
|
|
20
20
|
module ChefApply
|
|
21
21
|
class CLI
|
|
22
22
|
module Validation
|
|
23
|
-
PROPERTY_MATCHER = /^([a-zA-Z0-9_]+)=(.+)
|
|
23
|
+
PROPERTY_MATCHER = /^([a-zA-Z0-9_]+)=(.+)$/.freeze
|
|
24
24
|
CB_MATCHER = '[\w\-]+'.freeze
|
|
25
25
|
|
|
26
26
|
# The first param is always hostname. Then we either have
|
|
@@ -111,7 +111,7 @@ module ChefApply
|
|
|
111
111
|
# This uses a greedy match (.*) to get include every character
|
|
112
112
|
# up to the last "[" in PREFIX
|
|
113
113
|
# $1 - prefix; $2 - x, $3 - y, $4 unproccessed/remaining text
|
|
114
|
-
TARGET_WITH_RANGE = /^(.*)\[([\p{Alnum}]+):([\p{Alnum}]+)\](.*)
|
|
114
|
+
TARGET_WITH_RANGE = /^(.*)\[([\p{Alnum}]+):([\p{Alnum}]+)\](.*)/.freeze
|
|
115
115
|
|
|
116
116
|
def do_parse(targets, depth = 0)
|
|
117
117
|
raise TooManyRanges.new(@current_target) if depth > 2
|
data/lib/chef_apply/version.rb
CHANGED
|
@@ -336,7 +336,7 @@ RSpec.describe ChefApply::TargetResolver do
|
|
|
336
336
|
|
|
337
337
|
context "#config_for_target" do
|
|
338
338
|
{ "example.com" => { password: nil, url: "ssh://example.com", user: nil },
|
|
339
|
-
"ssh://example.com" =>
|
|
339
|
+
"ssh://example.com" => { password: nil, url: "ssh://example.com", user: nil },
|
|
340
340
|
"ssh://user@example.com" => { password: nil, url: "ssh://example.com", user: "user" },
|
|
341
341
|
"ssh://user:password@example.com" => { password: "password", user: "user", url: "ssh://example.com" },
|
|
342
342
|
"ssh://user:pas:sw:ord@example.com" => { password: "pas:sw:ord", user: "user", url: "ssh://example.com" },
|
data/spec/unit/telemeter_spec.rb
CHANGED
|
@@ -182,7 +182,7 @@ RSpec.describe ChefApply::Telemeter do
|
|
|
182
182
|
installation_id: "0000",
|
|
183
183
|
run_timestamp: subject.run_timestamp,
|
|
184
184
|
host_platform: host_platform,
|
|
185
|
-
event_data:
|
|
185
|
+
event_data: { hello: "world" },
|
|
186
186
|
},
|
|
187
187
|
}
|
|
188
188
|
expect(payload).to eq expected_payload
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: chef-apply
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Chef Software, Inc
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-01-
|
|
11
|
+
date: 2019-01-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: mixlib-cli
|