2017 © Pedro Peláez
 

drupal-drush drush-denver

Customize modules, variables and permissions for each environment.

image

keyboardcowboy/drush-denver

Customize modules, variables and permissions for each environment.

  • Tuesday, June 5, 2018
  • by KeyboardCowboy
  • Repository
  • 1 Watchers
  • 0 Stars
  • 730 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 4 Open issues
  • 26 Versions
  • 0 % Grown

The README.md

Drupal Environment Personalizer

This is a fork of the sandbox project at https://drupal.org/sandbox/bleen18/1696714 which is based on the code by Eric Duran at http://drupal.org/sandbox/ericduran/1154642, (*1)

The Drupal ENVironemnt personalizER allows you to define blanket settings to apply to your site in one command, such as enabling and disabling modules and setting variables., (*2)

Installation

Extract this repository into any of Drush's searchable paths for plugins:, (*3)

  1. A .drush folder in your HOME folder., (*4)

  2. Anywhere in a folder tree below an active module on your site., (*5)

  3. /usr/share/drush/commands (configurable), (*6)

  4. In an arbitrary folder specified with the --include option., (*7)

  5. Drupal's /drush or /sites/all/drush folders., (*8)

See drush topic docs-commands for more details, (*9)

Configuration

These can be defined in two different files and only apply to the site directory in which they are defined., (*10)

  1. sites/[default|example.com]/drush/env.drushrc.yml, (*11)

  2. sites/[default|example.com]/drush/[dev.]env.drushrc.yml, (*12)

Like aliases, in the first file you can define multiple aliases keyed on the definition name such as 'dev,' 'stage' or 'chris.' In the second example you can define each environment in a separate file and prefix the filename with the definition name., (*13)

The definitions are formatted as such:, (*14)

# Settings for your local environment.
local:
  modules:
    enable:
      - module_name
    disable:
      - module_name

  variables:
    your_var: your_var_value

  permissions:
    RoleName:
      permission_name: 0

  commands:
    command-name:
      alias: @self
      arguments:
        arg1: arg1-val
      options:
        opt1: opt1-val

OR if using a named file like dev.env.drushrc.yml, simply remove the leading item from the list., (*15)

# Settings for your local environment.
modules:
  enable:
    - module_name
  disable:
    - module_name

variables:
  your_var: your_var_value

permissions:
  RoleName:
    permission_name: 0

commands:
  command-name:
    alias: @self
    arguments:
      arg1: arg1-val
    options:
      opt1: opt1-val

How to Use It

You must be inside a Drupal site directory or use an alias for these commands to work (multisite alias support is coming soon)., (*16)

  1. Create a starter file, (*17)

    drush env-dir --make, (*18)

  2. See which environments are available., (*19)

    drush env-list, (*20)

  3. Inspect the contents of an environment definition., (*21)

    drush env-list [env-name], (*22)

    Ex. drush env-list dev, (*23)

  4. Run the environment settings for a single definition., (*24)

    drush env [env-name], (*25)

    Ex. drush env dev, (*26)

  5. Combine multiple environments. The settings for the latter overriding the former., (*27)

    drush env [env-name1]+[env-name2], (*28)

    Ex. drush env dev+chris, (*29)

The Versions

05/06 2018

2.2.x-dev

2.2.9999999.9999999-dev https://github.com/KeyboardCowboy/drush-denver

Customize modules, variables and permissions for each environment.

  Sources   Download

GPL-2.0+

The Requires

 

by Chris Albrecht

environment drush

05/06 2018

2.2.3

2.2.3.0 https://github.com/KeyboardCowboy/drush-denver

Customize modules, variables and permissions for each environment.

  Sources   Download

GPL-2.0+

The Requires

 

by Chris Albrecht

environment drush

01/03 2018

2.2.2

2.2.2.0 https://github.com/KeyboardCowboy/drush-denver

Customize modules, variables and permissions for each environment.

  Sources   Download

GPL-2.0+

The Requires

 

by Chris Albrecht

environment drush

14/12 2017

2.2.1

2.2.1.0 https://github.com/KeyboardCowboy/drush-denver

Customize modules, variables and permissions for each environment.

  Sources   Download

GPL-2.0+

The Requires

 

by Chris Albrecht

environment drush

14/12 2017

2.1.x-dev

2.1.9999999.9999999-dev https://github.com/KeyboardCowboy/drush-denver

Customize modules, variables and permissions for each environment.

  Sources   Download

GPL-2.0+

The Requires

 

by Chris Albrecht

environment drush

14/12 2017

2.1.11

2.1.11.0 https://github.com/KeyboardCowboy/drush-denver

Customize modules, variables and permissions for each environment.

  Sources   Download

GPL-2.0+

The Requires

 

by Chris Albrecht

environment drush

14/12 2017

2.2.0

2.2.0.0 https://github.com/KeyboardCowboy/drush-denver

Customize modules, variables and permissions for each environment.

  Sources   Download

GPL-2.0+

The Requires

 

by Chris Albrecht

environment drush

06/06 2017

2.1.10

2.1.10.0 https://github.com/KeyboardCowboy/drush-denver

Customize modules, variables and permissions for each environment.

  Sources   Download

GPL-2.0+

The Requires

 

by Chris Albrecht

environment drush

10/03 2017

2.1.9

2.1.9.0 https://github.com/KeyboardCowboy/drush-denver

Customize modules, variables and permissions for each environment.

  Sources   Download

GPL-2.0+

The Requires

 

by Chris Albrecht

environment drush

22/02 2017

2.1.8

2.1.8.0 https://github.com/KeyboardCowboy/drush-denver

Customize modules, variables and permissions for each environment.

  Sources   Download

GPL-2.0+

The Requires

 

by Chris Albrecht

environment drush

22/12 2016

2.1.7

2.1.7.0 https://github.com/KeyboardCowboy/drush-denver

Customize modules, variables and permissions for each environment.

  Sources   Download

GPL-2.0+

The Requires

 

by Chris Albrecht

environment drush

25/10 2016

2.1.6

2.1.6.0 https://github.com/KeyboardCowboy/drush-denver

Customize modules, variables and permissions for each environment.

  Sources   Download

GPL-2.0+

The Requires

 

by Chris Albrecht

environment drush

04/10 2016

2.1.5

2.1.5.0 https://github.com/KeyboardCowboy/drush-denver

Customize modules, variables and permissions for each environment.

  Sources   Download

GPL-2.0+

The Requires

 

by Chris Albrecht

environment drush

15/09 2016

2.1.4

2.1.4.0 https://github.com/KeyboardCowboy/drush-denver

Customize modules, variables and permissions for each environment.

  Sources   Download

GPL-2.0+

The Requires

 

by Chris Albrecht

environment drush

07/09 2016

2.1.3

2.1.3.0 https://github.com/KeyboardCowboy/drush-denver

Customize modules, variables and permissions for each environment.

  Sources   Download

GPL-2.0+

The Requires

 

by Chris Albrecht

environment drush

01/09 2016

2.1.2

2.1.2.0 https://github.com/KeyboardCowboy/drush-denver

Customize modules, variables and permissions for each environment.

  Sources   Download

GPL-2.0+

The Requires

 

by Chris Albrecht

environment drush

01/09 2016

2.1.1

2.1.1.0 https://github.com/KeyboardCowboy/drush-denver

Customize modules, variables and permissions for each environment.

  Sources   Download

GPL-2.0+

The Requires

 

by Chris Albrecht

environment drush

30/08 2016

dev-master

9999999-dev https://github.com/KeyboardCowboy/drush-denver

Customize modules, variables and permissions for each environment.

  Sources   Download

GPL-2.0+

The Requires

 

by Chris Albrecht

environment drush

30/08 2016

2.1.0

2.1.0.0 https://github.com/KeyboardCowboy/drush-denver

Customize modules, variables and permissions for each environment.

  Sources   Download

GPL-2.0+

The Requires

 

by Chris Albrecht

environment drush

30/08 2016

2.0.2

2.0.2.0 https://github.com/KeyboardCowboy/drush-denver

Customize modules, variables and permissions for each environment.

  Sources   Download

GPL-2.0+

The Requires

 

by Chris Albrecht

environment drush

29/08 2016

2.x-dev

2.9999999.9999999.9999999-dev https://github.com/KeyboardCowboy/drush-denver

Customize modules, variables and permissions for each environment.

  Sources   Download

GPL-2.0+

The Requires

 

by Chris Albrecht

environment drush

23/08 2016

2.0.1

2.0.1.0 https://github.com/KeyboardCowboy/drush-denver

Customize modules, variables and permissions for each environment.

  Sources   Download

GPL-2.0+

The Requires

 

by Chris Albrecht

environment drush

26/07 2016

2.0.0

2.0.0.0 https://github.com/KeyboardCowboy/drush-denver

Customize modules, variables and permissions for each environment.

  Sources   Download

GPL-2.0+

The Requires

 

by Chris Albrecht

environment drush

16/04 2015

1.x-dev

1.9999999.9999999.9999999-dev https://github.com/KeyboardCowboy/drush-denver

Customize modules, variables and permissions for each environment.

  Sources   Download

GPL-2.0+

The Requires

 

by Chris Albrecht

environment drush

16/04 2015

1.3.2

1.3.2.0 https://github.com/KeyboardCowboy/drush-denver

Customize modules, variables and permissions for each environment.

  Sources   Download

GPL-2.0+

The Requires

 

by Chris Albrecht

environment drush

25/03 2015

1.3.1

1.3.1.0 https://github.com/KeyboardCowboy/drush-denver

Customize modules, variables and permissions for each environment.

  Sources   Download

GPL-2.0+

The Requires

 

by Avatar KeyboardCowboy

environment drush