Skip to content

Commit

Permalink
rubocop: autofix
Browse files Browse the repository at this point in the history
  • Loading branch information
bastelfreak committed Sep 19, 2024
1 parent 6671506 commit 73adc85
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/puppet/modulebuilder/builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def validate_path_encoding!(path)
return unless /[^\x00-\x7F]/.match?(path)

raise ArgumentError, format("'%<path>s' can only include ASCII characters in its path or " \
'filename in order to be compatible with a wide range of hosts.', path: path)
'filename in order to be compatible with a wide range of hosts.', path:)
end

# Creates a gzip compressed tarball of the build directory.
Expand Down Expand Up @@ -232,7 +232,7 @@ def build_package
entry_meta[:mode] = orig_mode | min_mode

if entry_meta[:mode] != orig_mode
logger.debug(format('Updated permissions of packaged \'%<entry>s\' to %<new_mode>s', entry: entry,
logger.debug(format('Updated permissions of packaged \'%<entry>s\' to %<new_mode>s', entry:,
new_mode: (entry_meta[:mode] & 0o7777).to_s(8)))
end

Expand Down Expand Up @@ -352,7 +352,7 @@ def release_name
#
# @return [nil]
def validate_ustar_path!(path)
raise ArgumentError, format("The path '%<path>s' is longer than 256 bytes.", path: path) if path.bytesize > 256
raise ArgumentError, format("The path '%<path>s' is longer than 256 bytes.", path:) if path.bytesize > 256

if path.bytesize <= 100
prefix = ''
Expand All @@ -377,7 +377,7 @@ def validate_ustar_path!(path)
raise ArgumentError, \
format("'%<path>s' could not be split at a directory separator into two " \
'parts, the first having a maximum length of 155 bytes and the ' \
'second having a maximum length of 100 bytes.', path: path)
'second having a maximum length of 100 bytes.', path:)
end

private
Expand Down

0 comments on commit 73adc85

Please sign in to comment.