You are here

function drush_letsencrypt_provision_install in Aegir HTTPS 7.3

Implements drush_hook_provision_install().

Create the site specific configuration for this service.

In our selfsigned implementation we do not have an implementation of this API method, because it wasn't necessary.

If the service implemented doesn't define this method, or no implementation has been selected, nothing will happen.

File

submodules/letsencrypt/drush/install.provision.inc, line 19
Invoke Drush API hooks for the 'provision-install' command.

Code

function drush_letsencrypt_provision_install() {

  // only run this code on site objects.
  if (d()->type == 'site') {

    /**
     * Calling service methods.
     *
     * All the provision context objects can register which
     * servers handle specific services for them.
     *
     * To call the correct methods, you just need to use the
     * the 'service' method with the service type you want
     * to call as its only argument.
     */
    d()
      ->service('Certificate')
      ->create_config('site');
  }
}