You are here

self_signed.drush.inc in Aegir HTTPS 7.3

A SelfSigned implementation of the Certificate service for the Provision API.

File

submodules/self_signed/drush/self_signed.drush.inc
View source
<?php

/**
 * @file
 *   A SelfSigned implementation of the Certificate service for the Provision API.
 */

/**
 * Implements hook_drush_init().
 */
function self_signed_drush_init() {
  self_signed_provision_register_autoload();
}

/**
 * Register our directory as a place to find provision classes.
 */
function self_signed_provision_register_autoload() {
  static $loaded = FALSE;
  if (!$loaded) {
    $loaded = TRUE;
    provision_autoload_register_prefix('Provision_', dirname(__FILE__));
  }
}

/**
 * Implements hook_provision_services().
 *
 * Ensure our classes are loaded early enough to instantiate the Provision
 * services.
 */
function self_signed_provision_services() {
  self_signed_provision_register_autoload();
}

Functions

Namesort descending Description
self_signed_drush_init Implements hook_drush_init().
self_signed_provision_register_autoload Register our directory as a place to find provision classes.
self_signed_provision_services Implements hook_provision_services().