heroku/heroku — Issue #238: Error on Heroku Destroy
Author: jsimone
Created: 2012-02-16 19:12:53+00:00
State: open

Getting an error using Heroku destroy with the latest version of the gem. See output below:

Johns-MacBook-Pro:eastBayDemo johnsimone$ heroku version
heroku-gem/2.20.0
Johns-MacBook-Pro:eastBayDemo johnsimone$ heroku info
=== radiant-stone-7894
Addons: Shared Database 5MB, SSL Endpoint
Database Size: (empty)
Git URL: git@heroku.com:radiant-stone-7894.git
Owner: john@heroku.com
Repo Size: 43M
Slug Size: 26M
Stack: cedar
Web URL: http://radiant-stone-7894.herokuapp.com/
Johns-MacBook-Pro:eastBayDemo johnsimone$ heroku destroy
/Library/Ruby/Gems/1.8/gems/heroku-2.20.0/lib/heroku/command/apps.rb:191:in `destroy': uninitialized constant Heroku::Command::Apps::CommandFailed (NameError)
from /Library/Ruby/Gems/1.8/gems/heroku-2.20.0/lib/heroku/command.rb:129:in `send'
from /Library/Ruby/Gems/1.8/gems/heroku-2.20.0/lib/heroku/command.rb:129:in `run'
from /Library/Ruby/Gems/1.8/gems/heroku-2.20.0/lib/heroku/cli.rb:9:in `start'
from /Library/Ruby/Gems/1.8/gems/heroku-2.20.0/bin/heroku:15
from /usr/bin/heroku:19:in `load'
from /usr/bin/heroku:19

It worked when I passed in the app name:

Johns-MacBook-Pro:eastBayDemo johnsimone$ heroku destroy --app radiant-stone-7894 --confirm radiant-stone-7894
Destroying radiant-stone-7894 (including all add-ons)... done