Skip to content

Commit

Permalink
Rake task to print version digests
Browse files Browse the repository at this point in the history
  • Loading branch information
Azolo committed Jul 15, 2016
1 parent 786625c commit 826e88a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions rakelib/release_upload.rake
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,16 @@ namespace :release do

puts "Done."
end

desc "Get the md5 and sha256 digests and print them for a release"
task :digests, [:version] do |_task, args|
%w(md5 sha256).each do |digest_type|
files = Dir.glob("pkg/#{args.version.strip}/*.#{digest_type}").sort
puts "### #{digest_type.upcase}:"
files.each do |file|
puts " #{File.read(file)}"
end
puts ''
end
end
end

0 comments on commit 826e88a

Please sign in to comment.