-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdeploy.deploy.inc
116 lines (110 loc) · 3.55 KB
/
deploy.deploy.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<?php
/**
* @file
* Deploy's implementation of its own API.
*/
/**
* Implements hook_deploy_operation_info().
*/
function deploy_deploy_operation_info() {
return array(
'postprocess' => array(
array('callback' => 'deploy_manager_postprocess_operation'),
),
);
}
/**
* Implements hook_deploy_aggregators().
*/
function deploy_deploy_aggregators() {
$path = drupal_get_path('module', 'deploy') . '/plugins';
return array(
'DeployAggregatorManaged' => array(
'name' => 'Managed aggregator',
'description' => 'Provides methods for modules (or users) to manually manage entitites to be aggregated for deployment.',
'handler' => array(
'class' => 'DeployAggregatorManaged',
'file' => 'DeployAggregatorManaged.inc',
'path' => $path,
),
),
);
}
/**
* Implements hook_deploy_processors().
*/
function deploy_deploy_processors() {
$path = drupal_get_path('module', 'deploy') . '/plugins';
return array(
'DeployProcessorMemory' => array(
'name' => 'Memory processor',
'description' => 'All entities are deployed in memory. Works best with small deployments.',
'handler' => array(
'class' => 'DeployProcessorMemory',
'file' => 'DeployProcessorMemory.inc',
'path' => $path,
),
),
'DeployProcessorQueue' => array(
'name' => 'Queue API',
'description' => 'All entities are queued for deployment with the Queue API. Works best with large deployments. Can be used with a separate queue worker to achive very fast and parallel deployments.',
'handler' => array(
'class' => 'DeployProcessorQueue',
'file' => 'DeployProcessorQueue.inc',
'path' => $path,
),
),
'DeployProcessorBatch' => array(
'name' => 'Batch API',
'description' => 'All entities are processed with the Batch API. Works best when deployments are done through the UI.',
'handler' => array(
'class' => 'DeployProcessorBatch',
'file' => 'DeployProcessorBatch.inc',
'path' => $path,
),
),
);
}
/**
* Implements hook_deploy_authentications().
*/
function deploy_deploy_authenticators() {
$path = drupal_get_path('module', 'deploy') . '/plugins';
return array(
'DeployAuthenticatorSession' => array(
'name' => 'Session authentication',
'description' => 'Performs session authentication on the endpoint. Works well when the endpoint happens to be a Drupal site using Services module and session authentication.',
'handler' => array(
'class' => 'DeployAuthenticatorSession',
'file' => 'DeployAuthenticatorSession.inc',
'path' => $path,
),
),
'DeployAuthenticatorOAuth' => array(
'name' => 'oAuth',
'description' => 'Uses the oAuth protocol to authenticate with the endpoint. <strong>Does not work yet!</strong>',
'handler' => array(
'class' => 'DeployAuthenticatorOAuth',
'file' => 'DeployAuthenticatorOAuth.inc',
'path' => $path,
),
),
);
}
/**
* Implements hook_deploy_services().
*/
function deploy_deploy_services() {
$path = drupal_get_path('module', 'deploy') . '/plugins';
return array(
'DeployServiceRestJSON' => array(
'name' => 'REST JSON',
'description' => 'Deploys over a REST service that can receive JSON data. Works well when the endpoint happens to be a Drupal sites using Services module with REST server.',
'handler' => array(
'class' => 'DeployServiceRestJSON',
'file' => 'DeployServiceRestJSON.inc',
'path' => $path,
),
),
);
}