Skip to content

Commit 0dccc27

Browse files
committed
Make lintastic
1 parent f79e93b commit 0dccc27

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

cookbooks/boxcutter_sonatype/recipes/default.rb

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,8 @@
225225

226226
put_res = http_request.call(anonymous_uri, put_req)
227227
unless [200, 204].include?(put_res.code.to_i)
228-
fail "Nexus: failed to set anonymous=#{desired_enabled}: HTTP #{put_res.code} #{put_res.message} #{put_res.body}"
228+
fail "Nexus: failed to set anonymous=#{desired_enabled}: " \
229+
"HTTP #{put_res.code} #{put_res.message} #{put_res.body}"
229230
end
230231

231232
# Re-check to confirm it actually changed
@@ -286,7 +287,8 @@
286287
# managed password doesn't work; bootstrap using admin.password if available
287288
pw_file = admin_pw_candidates.find { |p| ::File.exist?(p) }
288289
if pw_file.nil?
289-
fail "Nexus: managed admin password rejected and no bootstrap admin.password found in: #{admin_pw_candidates.join(', ')}"
290+
fail "Nexus: managed admin password rejected and no bootstrap " \
291+
"admin.password found in: #{admin_pw_candidates.join(', ')}"
290292
end
291293

292294
bootstrap_pw = ::File.read(pw_file).strip
@@ -296,7 +298,8 @@
296298
begin
297299
ensure_anonymous_setting.call(bootstrap_pw, desired_anonymous)
298300
rescue => e
299-
Chef::Log.info("Nexus: could not set anonymous with bootstrap password (#{e.class}: #{e.message}); continuing bootstrap...")
301+
Chef::Log.info("Nexus: could not set anonymous with bootstrap " \
302+
"password (#{e.class}: #{e.message}); continuing bootstrap...")
300303
end
301304

302305
# Now change admin password to managed password
@@ -317,4 +320,4 @@
317320
end
318321
end
319322

320-
boxcutter_sonatype_nexus_repository 'configure'
323+
boxcutter_sonatype_nexus_repository 'configure'

0 commit comments

Comments
 (0)