capistrano/capistrano — pull request #284 by ndbroadbent (2012-10-01 07:36:49+00:00)
Title: Rewrite of #213 - Commands will be printed only if they are executing on servers

Cleaner (IMO) rewrite of https://github.com/capistrano/capistrano/pull/213
I loved the idea, but didn't think it warranted a new `DelayedLogger` class.

#### Description from the original pull request:

Capistrano prints all commands even if they really won't be executed, example:

```
== Currently executing `deploy:assets:symlink'
executing "rm -rf /u/apps/appname/releases/20120528203209/public/assets &&\\\n mkdir -p /u/apps/appname/releases/20120528203209/public &&\\\n mkdir -p /u/apps/appname/shared/assets &&\\\n ln -s /u/apps/appname/shared/assets /u/apps/appname/releases/20120528203209/public/assets"
skipping `deploy:assets:symlink' because no servers matched
```

after patch:

```
== Currently executing `deploy:assets:symlink'
skipping `deploy:assets:symlink' because no servers matched
```