-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inject options from core:rsync and sql:sync alias parameters. #3075
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
6d2748a
Inject options from rsync alias parameters.
greg-1-anderson 62eddb6
Fix a couple of bugs and add tests for rsync alias option injection.
greg-1-anderson 74255f4
Refactor alias parameter option injection code for better reusability.
greg-1-anderson b88e47b
Inject data from source and target aliases in sql:sync command.
greg-1-anderson 0b6660e
Translate 'runner' values of 'source' or 'target' or 'destination' to…
greg-1-anderson f8dba3f
Ensure that drush-script is passed on to backend-invoke. Add a method…
greg-1-anderson a446e2b
Restore 'return sites' at end of setUpDrupal
greg-1-anderson a80ac19
Refine sql-sync test.
greg-1-anderson ec16324
Merge branch 'master' into inject-from-alias-parameters
greg-1-anderson File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -160,14 +160,16 @@ | |
# if you set a 'remote-host' value, and your remote OS is Windows, if you | ||
# do not set the 'OS' value, it will default to 'Linux' and could cause | ||
# unintended consequences, particularly when running 'drush sql-sync'. | ||
# - 'ssh-options': If the target requires special options, such as a non- | ||
# - 'ssh': If the target requires special options, such as a non- | ||
# standard port, alternative identity file, or alternative | ||
# authentication method, ssh-options can contain a string of extra | ||
# options that are used with the ssh command, eg "-p 100" | ||
# authentication method, the `option` entry under the `ssh` item may | ||
# contain a string of extra options that are used with the ssh command, | ||
# e.g. "-p 100" | ||
# - 'paths': An array of aliases for common rsync targets. | ||
# Relative aliases are always taken from the Drupal root. | ||
# - 'files': Path to 'files' directory. This will be looked up if not | ||
# specified. | ||
# - 'drush-script': Path to the remot Drush command. | ||
# - 'command': These options will only be set if the alias | ||
# is used with the specified command. In the example below, the option | ||
# `--no-dump` will be selected whenever the @stage alias | ||
|
@@ -177,6 +179,36 @@ | |
# - `drush sql-sync @live @stage` | ||
# NOTE: Setting boolean options broke with Symfony 3. This will be fixed | ||
# in a future release. See: https://github.com/drush-ops/drush/issues/2956 | ||
# - 'alias-parameters': These options will only be set if the alias is | ||
# used as the specified parameter. `sql:sync` and `core:rsync` are the two | ||
# core commands that use this entry. These commands both have `source` | ||
# and `target` parameters. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can we add config-pull to this list? |
||
# | ||
# Complex example: | ||
# | ||
# @code | ||
# # File: remote.alias.yml | ||
# live: | ||
# host: server.domain.com | ||
# user: www-admin | ||
# root: /other/path/to/drupal | ||
# uri: http://example.com | ||
# ssh: | ||
# options: '-p 100' | ||
# paths: | ||
# drush-script: '/path/to/drush' | ||
# command: | ||
# site: | ||
# install: | ||
# options: | ||
# admin-password: 'secret-secret' | ||
# alias-parameters: | ||
# target: | ||
# core: | ||
# rsnyc: | ||
# options: | ||
# excplude-paths: sites/default/files/private | ||
# @endcode | ||
# | ||
# Altering aliases: | ||
# | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo.
:s/remot/remote/
.