Created
February 16, 2011 17:45
-
-
Save RogerPodacter/829800 to your computer and use it in GitHub Desktop.
Heroku Bundler Downloader
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app_name = "YOUR_APP_NAME" | |
bundles = `heroku bundles`.split("\n") | |
bundles.select{|i| i.match(/\d{4}-\d{2}-\d{2}\s+c/)}.each do |bundle| | |
name = bundle.split.first | |
puts "downloading #{name}" | |
system("heroku bundles:download #{name}") | |
system("mv #{app_name}.tar.gz #{name}-rapgenius.tar.gz") | |
puts "done!\n\n" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment