flowdock/flowdock-api — Issue #4: cap deploy:restart doesnt work after requiring flowdock
Author: holli
Created: 2012-01-05 13:43:53+00:00
State: open

```
cap deploy:restart

* executing `deploy:restart'
triggering before callbacks for `deploy:restart'
* executing "touch ..cap/current/tmp/restart.txt"
....
triggering after callbacks for `deploy:restart'
* executing `flowdock:notify_deploy_finished'
triggering before callbacks for `flowdock:notify_deploy_finished'
* executing `flowdock:set_flowdock_api'
triggering before callbacks for `flowdock:set_flowdock_api'

triggering before callbacks for `flowdock:set_flowdock_api'
...lobal/gems/capistrano-2.9.0/lib/capistrano/configuration/namespaces.rb:188:in `method_missing': undefined local variable or method `current_branch' for # (NameError)
```

Maybe at: https://github.com/flowdock/flowdock-api/blob/master/lib/flowdock/capistrano.rb#L62

I would use somthing related to "deploy:symlink"

Anyway, I'm not sure if server restart should be informed by default. But at least calling plain "cap deploy:restart" should work as before.