If the webserver creates new directories in, for example, the cache directory, the shell user won't have permission to delete those files. This causes deploy:cleanup to fail, unless sudo is available. To solve this, the deploy:set_permissions task also has to set ACEs to ensure that the shell user has full access to the "writable_dirs", just like it does for the webserver user. This is also what the Symfony 2 documentation says. As the "chmod +a" command used on OS X can only handle one ACE per invocation, we have to use an array to support more than one command per method.
If a pty is allocated for the ssh session running the "status" command, the output might contain ANSI color codes which break the regex that tries to detect the current database schema version. To avoid this, we have to use the --no-ansi option to disable the colors.
"database:move:to_remote" Task was looking to "databases.yml" which is a symfony1 file. Correct file for symfony2 is: app/config/parameters.yml