Skip to content

Instantly share code, notes, and snippets.

@RogerPodacter
Created February 16, 2011 17:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RogerPodacter/829800 to your computer and use it in GitHub Desktop.
Save RogerPodacter/829800 to your computer and use it in GitHub Desktop.
Heroku Bundler Downloader
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