heroku/heroku — pull request #1059 by deafbybeheading (2014-03-18 20:56:20+00:00)
Title: Attachable resources have no 'name'; use mangled config var instead.

Without this, `pg:psql` does not work for attachable resources:

```console
maciek@gamera:~/code/heroku$ bin/heroku pg:psql --app sushi

! Heroku client internal error.
! Search for help at: https://help.heroku.com
! Or report a bug at: https://github.com/heroku/heroku/issues/new

Error: undefined method `sub' for nil:NilClass (NoMethodError)
Backtrace: /home/maciek/code/heroku/lib/heroku/command/pg.rb:86:in `psql'
/home/maciek/code/heroku/lib/heroku/command.rb:218:in `run'
/home/maciek/code/heroku/lib/heroku/cli.rb:28:in `start'
bin/heroku:17:in `

'

Command: heroku pg:psql --app heroku-data-warehouse
Version: heroku-gem/3.6.0 (x86_64-linux) ruby/1.9.3
```

The bug was introduced by me in #1022. /cc @rkst, who originally ran into this.