Well here's the polling version. It works but it could use some DRYing up:
desc 'local task to create and download a Heroku bundle' task :snapshot_bundle do timestamp = `date -u '+%Y-%m-%d-%H-%M'`.chomp bundle_name = "bundle-#{timestamp}" `heroku bundles:capture --app thoughtpropulsion '# {bundle_name}'` # poll for completion begin bundles = `heroku bundles --app thoughtpropulsion` end while bundles.match(/complete/).nil? %w(download destroy).each do | action | `heroku bundles:#{action} --app thoughtpropulsion '# {bundle_name}'` end end --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to heroku@googlegroups.com To unsubscribe from this group, send email to heroku+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/heroku?hl=en -~----------~----~----~----~------~----~------~--~---