Home ›
Example policy-enforcement module for DrushExample policy-enforcement module for Drush
Submitted by Benjamin Melançon on July 15, 2010 - 6:02pm
Link Title and URL:
Example policy-enforcement module for Drush [drupal] Contents of /contributions/modules/drush/examples/policy.drush.inc
Add new example file: policy.drush.inc. It enforces three example policies. It saves the prod DB from overwrite, restricts access to updatedb, and enforces mmas command.
Does this by implementing drush_hook_COMMAND_validate(), for instance drush_policy_sql_sync_validate().
Comments
Post new comment