Commit 491b908 1 parent ce24502 commit 491b908 Copy full SHA for 491b908
File tree 5 files changed +38
-31
lines changed
5 files changed +38
-31
lines changed Original file line number Diff line number Diff line change 14
14
<phingcall target =" setup" >
15
15
<property name =" drush.alias" value =" ${drush.aliases.ci}" />
16
16
<property name =" create_alias" value =" n" />
17
+ <property name =" enable_property" value =" modules.ci.enable" />
18
+ <property name =" uninstall_property" value =" modules.ci.uninstall" />
17
19
</phingcall >
18
20
</target >
19
21
37
39
<target name =" ci:update" description =" Update current database to reflect the state of the Drupal file system; uses ci drush alias." hidden =" true" >
38
40
<phingcall target =" setup:update" >
39
41
<property name =" drush.alias" value =" ${drush.aliases.ci}" />
40
- </phingcall >
41
- </target >
42
-
43
- <target name =" ci:toggle-modules" description =" Enables modules.ci.enable projects and uninstalls modules.ci.uninstall projects." >
44
- <phingcall target =" setup:toggle-modules" >
45
- <param name =" enable" value =" ${modules.ci.enable}" />
46
- <param name =" uninstall" value =" ${modules.ci.uninstall}" />
42
+ <property name =" enable_property" value =" modules.ci.enable" />
43
+ <property name =" uninstall_property" value =" modules.ci.uninstall" />
47
44
</phingcall >
48
45
</target >
49
46
</project >
Original file line number Diff line number Diff line change 157
157
</delete >
158
158
</target >
159
159
160
- <target name =" deploy:update" description =" Update current database to reflect the state of the Drupal file system; uses local drush alias." depends = " deploy:toggle-modules " >
160
+ <target name =" deploy:update" description =" Update current database to reflect the state of the Drupal file system; uses local drush alias." >
161
161
<phingcall target =" setup:update" >
162
+ <param name =" enable_property" value =" modules.deploy.enable" />
163
+ <param name =" uninstall_property" value =" modules.deploy.uninstall" />
162
164
<property name =" drush.alias" value =" self" />
163
165
<!-- Most sites store their version-controlled configuration in /config/default. -->
164
166
<!-- ACE internally sets the vcs configuration directory to /config/default, so we use that. -->
165
167
<property name =" cm.core.config-dir" value =" vcs" />
166
168
</phingcall >
167
169
</target >
168
-
169
- <target name =" deploy:toggle-modules" description =" Enables modules.deploy.enable projects and uninstalls modules.deploy.uninstall projects." >
170
- <phingcall target =" setup:toggle-modules" >
171
- <param name =" enable" value =" ${modules.deploy.enable}" />
172
- <param name =" uninstall" value =" ${modules.deploy.uninstall}" />
173
- </phingcall >
174
- </target >
175
170
</project >
Original file line number Diff line number Diff line change 8
8
9
9
<target name =" local:refresh" description =" Refreshes local environment from upstream testing database." depends =" setup:build, local:sync, local:update" />
10
10
11
- <target name =" local:setup" description =" Install dependencies, builds docroot, installs Drupal; uses local drush alias." depends = " local:toggle-modules " >
11
+ <target name =" local:setup" description =" Install dependencies, builds docroot, installs Drupal; uses local drush alias." >
12
12
<phingcall target =" setup" >
13
13
<property name =" drush.alias" value =" ${drush.aliases.local}" />
14
+ <param name =" enable_property" value =" modules.local.enable" />
15
+ <param name =" uninstall_property" value =" modules.local.uninstall" />
14
16
</phingcall >
15
17
</target >
16
18
30
32
<drush command =" cache-rebuild" />
31
33
</target >
32
34
33
- <target name =" local:toggle-modules" description =" Enables modules.local.enable projects and uninstalls modules.local.uninstall projects." >
34
- <phingcall target =" setup:toggle-modules" >
35
- <param name =" enable" value =" ${modules.local.enable}" />
36
- <param name =" uninstall" value =" ${modules.local.uninstall}" />
37
- </phingcall >
38
- </target >
39
-
40
- <target name =" local:update" description =" Update current database to reflect the state of the Drupal file system; uses local drush alias." depends =" local:toggle-modules" >
35
+ <target name =" local:update" description =" Update current database to reflect the state of the Drupal file system; uses local drush alias." >
41
36
<phingcall target =" setup:update" >
42
37
<property name =" drush.alias" value =" ${drush.aliases.local}" />
38
+ <property name =" enable_property" value =" modules.local.enable" />
39
+ <property name =" uninstall_property" value =" modules.local.uninstall" />
43
40
</phingcall >
44
41
</target >
45
42
Original file line number Diff line number Diff line change 158
158
159
159
<phingcall target =" setup:config-import" />
160
160
161
+ <!-- enable_property and uninstall_property must be set at this time. -->
162
+ <phingcall target =" setup:update" />
163
+
161
164
<!-- Set sites directory file permissions. -->
162
165
<echo >Making ${docroot}/sites/default writable.</echo >
163
166
<chmod mode =" 0755" failonerror =" false" >
225
228
</target >
226
229
227
230
<target name =" setup:update" description =" Update current database to reflect the state of the Drupal file system." >
231
+
232
+ <!-- enable_property and uninstall_property must be set at this time. -->
233
+ <phingcall target =" setup:toggle-modules" />
234
+
228
235
<!-- Import configuration before executing updates, in case any db updates are dependent on new configs to be imported. -->
229
236
<drush command =" config-import" assume =" yes" alias =" ${drush.alias}" >
230
237
<option name =" partial" ></option >
265
272
</target >
266
273
267
274
<target name =" setup:toggle-modules" description =" Enables and uninstalls specified modules." >
268
- <drush command =" pm-enable" assume =" yes" >
269
- <param >${enable}</param >
270
- <option >skip</option >
271
- </drush >
272
- <drush command =" pm-uninstall" assume =" yes" >
273
- <param >${uninstall}</param >
274
- </drush >
275
+ <if >
276
+ <isset property =" ${enable_property}" />
277
+ <then >
278
+ <drush command =" pm-enable" assume =" yes" >
279
+ <param >${${enable_property}}</param >
280
+ <option name =" skip" ></option >
281
+ </drush >
282
+ </then >
283
+ </if >
284
+ <if >
285
+ <isset property =" ${uninstall_property}" />
286
+ <then >
287
+ <drush command =" pm-uninstall" assume =" yes" >
288
+ <param >${${uninstall_property}}</param >
289
+ </drush >
290
+ </then >
291
+ </if >
275
292
</target >
276
293
277
294
</project >
Original file line number Diff line number Diff line change 8
8
}
9
9
],
10
10
"require" : {
11
+
11
12
"cweagans/composer-patches" : " dev-master#5456199acdcc16b243814aa45259f4c56272a634 as 1.5.0" ,
12
13
"drupal/acquia_connector" : " ^8.1.5" ,
13
14
"drupal/acsf" : " ^8.1.32" ,
You can’t perform that action at this time.
0 commit comments