Code Monkey home page Code Monkey logo

drupal-environment's Introduction

$Id: README.txt,v 1.1 2010/03/04 05:38:42 ceardach Exp $

ENVIRONMENT

Creates an api for specifying an environment for a site instance.  Other modules
may then change their logic depending upon the current active environment. When
switching environments a hook is invoked to allow each module to run additional
required actions.

The environment states are completely customizable and may be arbitrarily set
to any value that makes sense for the project at hand. Predefined environments
are 'development' and 'production'.


Example
-------

 drush env-switch development              Switch the environment to
                                           development
 drush env-switch --force production       Force the environment to switch to
                                           production even if the current
                                           environment already is production
 drush env                                 Shows current environment


Hooks Invoked
-------------

hook_environment_switch($target_env, $current_env)


Additional Behaviors
--------------------

Drush:
  - drush env-switch
    Invokes switching the environment
  - drush env
    Shows current environment

drupal-environment's People

Contributors

voxpelli avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.