MCPcopy Create free account
hub / github.com/apache/arrow / sign_dir

Method sign_dir

dev/release/binary-task.rb:1248–1268  ·  view source on GitHub ↗
(label, dir)

Source from the content-addressed store, hash-verified

1246 end
1247
1248 def sign_dir(label, dir)
1249 progress_label = "Signing: #{label}"
1250 progress_reporter = ProgressReporter.new(progress_label)
1251
1252 target_paths = []
1253 Pathname(dir).glob("**/*") do |path|
1254 next if path.directory?
1255 case path.extname
1256 when ".asc", ".sha512"
1257 next
1258 end
1259 progress_reporter.increment_max
1260 target_paths << path.to_s
1261 end
1262 target_paths.each do |path|
1263 sign(path, "#{path}.asc")
1264 sha512(path, "#{path}.sha512")
1265 progress_reporter.advance
1266 end
1267 progress_reporter.finish
1268 end
1269
1270 def download_distribution(type,
1271 distribution,

Callers

nothing calls this directly

Calls 7

directory?Method · 0.80
increment_maxMethod · 0.80
newMethod · 0.45
to_sMethod · 0.45
eachMethod · 0.45
advanceMethod · 0.45
finishMethod · 0.45

Tested by

no test coverage detected