lavmeiker/capistrano-wpcli — pull request #4 by lavmeiker (2014-06-10 17:55:50+00:00)
Title: DB Push-Pull in Multisite

Hello,
Love the tool and have it mostly working with my WP deployments. However, the 'wp search-replace' command in the push/pull tasks doesn't work in multisite installations. Wp-cli has a --network flag that allows search-replace in the multisite tables as well. I would like to test the --network option but haven't went so far as to fork, change, and rebuild. Wanted to run by you first.

Perhaps it would be possible to have an 'args' or similar configuration, e.g. set :wpcli_args, "--network". You could then fetch this config as part of the execute and end up with something like this:
execute :wp, "search-replace", "'#{fetch(:local_url)}' '#{fetch(:remote_url)}' '#{fetch(:wpcli_args)}' --skip-columns=guid"

Thoughts? I'm very new to ruby so treading lightly.
Thanks,
~John