flowdock/flowdock-api — Issue #5: cap deploy:symlink doesn't work now
Author: holli
Created: 2012-01-13 14:36:52+00:00
State: open

Yeah, after last issue ( https://github.com/flowdock/flowdock-api/issues/4 ) this was quite obvious :)

So i'm not sure where it should be handled normally. But in generally I would want that flowdock would never create errors in my capistrano excecutements. Especially it should **never** stop my deploying scripts. If I break my production server, i want to be able to use the commants as excected, then I don't really care if flow gets notified or not, I'm in a hurry...

It should just pass and log some errors etc. In https://github.com/flowdock/flowdock-api/blob/master/lib/flowdock/capistrano.rb#L36 something like

```
unless defined?(current_branch)
your code
else
puts "Flowdock could not be informed, no branch set, debug or contact support"
end

```

```
Some trace:

command finished in 738ms
triggering after callbacks for `deploy:symlink'
* 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'
/home/ohu/.rvm/gems/ree-1.8.7-2011.03/gems/capistrano-2.9.0/lib/capistrano/configuration/namespaces.rb:188:in `method_missing': undefined local variable or method `current_branch' for # (NameError)
```