Skip to content
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

Update /drush dir for Drush9 #350

Merged
merged 5 commits into from
Mar 6, 2018
Merged

Update /drush dir for Drush9 #350

merged 5 commits into from
Mar 6, 2018

Conversation

weitzman
Copy link
Contributor

@weitzman weitzman commented Feb 9, 2018

Shows how the benefits of a policyfile and also illustrates where to store site aliases and druh config.

Shows how the benefits of a policyfile and also illustrates where to store site aliases and druh config.
* Encourage folks to use `composer` instead of Drush pm commands
*/
function drush_policy_pm_updatecode_validate() {
return _deny_message();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This functionality is not present in the replacement Drush\Commands\PolicyCommands - should we not continue to prevent this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no pm-updatecode anymore so no need. Of course people still use Drush8 but thsoe folks are generally not starting brand new projects. This project is a starter-kit so we dont have to worry about existing sites.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same for pm-update and pm-download ...

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah - I should have checked the repo, I just did a quick check on drushcommands.com !

@webflo
Copy link
Member

webflo commented Feb 11, 2018

I did some code-styles fixes on the policy file.

@webflo webflo self-requested a review February 11, 2018 18:55
*
* @throws \Exception
*/
public function validateUpdateDb(CommandData $commandData) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets remove the validateUpdateDb example. I think its to advanced. We could like to the example for more examples :) sqlSyncValidate and rsyncValidate is good enough.

# Edit or remove this file as needed.
# Docs at https://github.com/drush-ops/drush/blob/master/examples/example.site.yml

#live:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets use prod here. It should match with our default policy file

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

drush/Sites/self.site.yml should be sites?. I looked through the drush code and should not find a instance with Sites.

@weitzman
Copy link
Contributor Author

Implemented review feedback.

@weitzman weitzman mentioned this pull request Mar 1, 2018
weitzman referenced this pull request Mar 6, 2018
@webflo webflo merged commit e34719c into 8.x Mar 6, 2018
@webflo webflo deleted the drush9-policy branch March 6, 2018 17:18
@webflo
Copy link
Member

webflo commented Mar 6, 2018

@weitzman Thanks! Sorry for the delay.

hawkeyetwolf pushed a commit to kalamuna/drupal-project that referenced this pull request Mar 9, 2018
…m-project

* upstream/8.x:
  Improve update instructions (drupal-composer#366)
  Run tests with 8.6.x
  Update to Drupal 8.5
  Add platform version to FAQ to help user specifying PHP version, fixes drupal-composer#359. (drupal-composer#360)
  Update /drush dir for Drush9 (drupal-composer#350)
  Revert "Update /drush dir for Drush9"
  Update /drush dir for Drush9
  Replace require-dev with webflo/drupal-core-require-dev (drupal-composer#348)
  Bump drush version
  Replace GPL-2.0+ by GPL-2.0-or-later
  Run tests with 8.5.x (drupal-composer#329)
  Update README.md (drupal-composer#334)
  Update composer dependencies (drupal-composer#325)
  Declare compatibility with versions of Drush and CSS selector that are compatible with Drupal 8.4 and earlier.
  Added composer validate to CI.
  Update .travis.yml
  Update .travis.yml
  Add support for Drush 9 and Drupal 8.4
daften pushed a commit to district09/drupal8_project_template that referenced this pull request Aug 9, 2018
* upstream/8.x: (22 commits)
  Remove unused use statement. (drupal-composer#406)
  Fix typo in README.md
  Remove "drupal-scaffold" from scripts (drupal-composer#275)
  Copy the editor config and gitattributes from drupal to the root. (drupal-composer#404)
  Fix tests on Travis CI (drupal-composer#405)
  Update drupal-composer/drupal-scaffold
  Fix installer path for drush commandfiles.
  Bump minimal version to 8.5.3
  Bump minimal version
  Updated argument name
  Remove extra whitespace (drupal-composer#371)
  Honor .env files and suggest usage (drupal-composer#351)
  Improve update instructions (drupal-composer#366)
  Run tests with 8.6.x
  Update to Drupal 8.5
  Add platform version to FAQ to help user specifying PHP version, fixes drupal-composer#359. (drupal-composer#360)
  Update /drush dir for Drush9 (drupal-composer#350)
  Revert "Update /drush dir for Drush9"
  Update /drush dir for Drush9
  Replace require-dev with webflo/drupal-core-require-dev (drupal-composer#348)
  ...

# Conflicts:
#	.gitignore
#	composer.json
#	drush/policy.drush.inc
shrop pushed a commit to shrop/drupal-project that referenced this pull request Apr 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants