Skip to content

Commit 7411eab

Browse files
committed
Rubocop safe autocorrections
1 parent ca71656 commit 7411eab

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

exe/matrix_from_metadata_v3

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -308,10 +308,10 @@ options[:metadata]['operatingsystem_support'].each do |os_sup|
308308
end
309309

310310
os_ver_platforms << {
311-
label: label,
311+
label:,
312312
provider: provisioner,
313-
arch: arch,
314-
image: image,
313+
arch:,
314+
image:,
315315
runner: runner.nil? ? options[:runner] : runner
316316
}
317317
end
@@ -330,7 +330,7 @@ Action.group('matrix', matrix, pretty: true).group('spec_matrix', spec_matrix, p
330330
Action.error('no supported puppet versions') if matrix[:collection].empty?
331331

332332
if Action.type == 'stdout'
333-
$stdout.puts JSON.generate({ matrix: matrix, spec_matrix: spec_matrix })
333+
$stdout.puts JSON.generate({ matrix:, spec_matrix: })
334334
else
335335
Action.set_output('matrix', matrix).set_output('spec_matrix', spec_matrix)
336336
end

lib/puppet_litmus/puppet_helpers.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ module PuppetLitmus::PuppetHelpers
2020
# @return [Boolean] The result of the 2 apply manifests.
2121
def idempotent_apply(manifest, opts = {})
2222
manifest_file_location = create_manifest_file(manifest)
23-
apply_manifest(nil, **opts, catch_failures: true, manifest_file_location: manifest_file_location)
24-
apply_manifest(nil, **opts, catch_changes: true, manifest_file_location: manifest_file_location)
23+
apply_manifest(nil, **opts, catch_failures: true, manifest_file_location:)
24+
apply_manifest(nil, **opts, catch_changes: true, manifest_file_location:)
2525
end
2626

2727
# Applies a manifest. returning the result of that apply. Mimics the apply_manifest from beaker
@@ -230,7 +230,7 @@ def bolt_upload_file(source, destination, opts = {}, options = {})
230230
target_node_name = search_for_target(target_option, inventory_hash)
231231
end
232232

233-
bolt_result = upload_file(source, destination, target_node_name, options: options, config: nil, inventory: inventory_hash)
233+
bolt_result = upload_file(source, destination, target_node_name, options:, config: nil, inventory: inventory_hash)
234234

235235
result_obj = {
236236
exit_code: 0,

lib/puppet_litmus/spec_helper_acceptance.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@ def self.configure!
8888
endpoint.path = '/wsman'
8989

9090
opts = {
91-
user: user,
91+
user:,
9292
password: pass,
93-
endpoint: endpoint,
93+
endpoint:,
9494
operation_timeout: 300
9595
}
9696

0 commit comments

Comments
 (0)