@@ -125,7 +125,7 @@ def matches(paths_file, files_original_path)
125125 # given its possible that request.options[:bucket_path] or Puppet[:bucketdir]
126126 # contained characters in an encoding that are not represented the
127127 # same way when the bytes are decoded as UTF-8, continue using system encoding
128- Puppet ::FileSystem . open ( paths_file , 0640 , 'a+:external' ) do |f |
128+ Puppet ::FileSystem . open ( paths_file , 0o640 , 'a+:external' ) do |f |
129129 path_match ( f , files_original_path )
130130 end
131131 end
@@ -152,7 +152,7 @@ def path_match(file_handle, files_original_path)
152152 # existing and new backup
153153 # @api private
154154 def save_to_disk ( bucket_file , files_original_path , contents_file , paths_file )
155- Puppet ::Util . withumask ( 0007 ) do
155+ Puppet ::Util . withumask ( 0o007 ) do
156156 unless Puppet ::FileSystem . dir_exist? ( paths_file )
157157 Puppet ::FileSystem . dir_mkpath ( paths_file )
158158 end
@@ -161,7 +161,7 @@ def save_to_disk(bucket_file, files_original_path, contents_file, paths_file)
161161 # given its possible that request.options[:bucket_path] or Puppet[:bucketdir]
162162 # contained characters in an encoding that are not represented the
163163 # same way when the bytes are decoded as UTF-8, continue using system encoding
164- Puppet ::FileSystem . exclusive_open ( paths_file , 0640 , 'a+:external' ) do |f |
164+ Puppet ::FileSystem . exclusive_open ( paths_file , 0o640 , 'a+:external' ) do |f |
165165 if Puppet ::FileSystem . exist? ( contents_file )
166166 if verify_identical_file ( contents_file , bucket_file )
167167 # TRANSLATORS "FileBucket" should not be translated
@@ -257,7 +257,7 @@ def contents_file_matches_checksum?(contents_file, expected_checksum_data, check
257257 # @return [void]
258258 # @api private
259259 def copy_bucket_file_to_contents_file ( contents_file , bucket_file )
260- Puppet ::FileSystem . replace_file ( contents_file , 0440 ) do |of |
260+ Puppet ::FileSystem . replace_file ( contents_file , 0o440 ) do |of |
261261 # PUP-1044 writes all of the contents
262262 bucket_file . stream ( ) do |src |
263263 FileUtils . copy_stream ( src , of )
0 commit comments