It looks like heroku bundles:capture is asynchronous. It starts the
bundling and then returns.
Is there an easily scriptable way to get an indication of bundle
completion?
I'm trying to script bundle creation, download, removal like this:
task :snapshot_bundle do
timestamp = `date -u '+%Y-%m-%d-%H-%M'`.chomp
bundle_name = "bundle-#{timestamp}"
%w( capture download destroy).each do | action |
`heroku bundles:#{action} --app thoughtpropulsion '#
{bundle_name}'`
end
end
But when I run that task I see this:
BillBurcham:thought-propulsion Bill$ rake propel:heroku:snapshot_bundle
(in /Users/Bill/Projects/Rails/thought-propulsion)
Bundle not yet captured
>From looking at the heroku gem source the only way I see to do it is
to poll `heroku bundles` until I see that my bundle has been created.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Heroku" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/heroku?hl=en
-~----------~----~----~----~------~----~------~--~---