Closed (fixed)
Project:
Drush
Component:
Base system (internal API)
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
26 Jan 2011 at 22:19 UTC
Updated:
4 Apr 2012 at 19:00 UTC
drush @slice st --simulate still performs the remote command despite simulate mode. @slice has a remote host.
Comments
Comment #1
greg.1.anderson commentedSo, do you think that --simulate with a remote host should print out the ssh command but not run it, or should it run the remote drush command and pass through the --simulate flag?
Comment #2
greg.1.anderson commentedThe former is safer, of course.
Comment #3
moshe weitzman commentedGood question. Both are useful. For the near term, I think --simulate should not issue the ssh command. Looks like this never worked as I describe so lowering priority.
Them, I'm interested in a --backend-simulate which is only in effect when --backend is in effect. Perhaps should apply to any option, not just simulate.
Comment #4
greg.1.anderson commentedSo in other words, --backend-* does nothing, but backend_invoke will find all of the --backend-*=value options and turn them into --*=value when it calls through? That's easy enough.
Comment #5
moshe weitzman commentedI committed a fix so that --simulate does not remote dispatch during --simulate. Leaving open for the --backend-foo feature.
I have turned back on the 'Remove trailing whitespace' feature on my editor so lots of unimportant diffs in the commit. I encourage all contributors to use this setting if you have it. We'll have the codebase cleaned up again in no time.
Comment #6
greg.1.anderson commentedI didn't like #5 because it interferes with
drush sql-sync -s @from @to. I committed an adjustment to allow calls to override --simulate mode if they are making read-only calls (e.g. to fetch db info).http://drupal.org/cvs?commit=494604
Comment #7
moshe weitzman commentedThanks for doing this. It has been annoying me too. I may add a couple more overrides as they arise.
Comment #8
greg.1.anderson commentedI think this (remote --simulated) is basically fixed now. --backend-foo is not implemented, but I have not found any need for that. Re-open if you think it's important.