Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Commit f9262a3

Browse files
committed
Fixing toggle-modules targets.
1 parent 6c680db commit f9262a3

File tree

5 files changed

+28
-15
lines changed

5 files changed

+28
-15
lines changed

phing/tasks/ci.xml

+4-3
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,13 @@
3838
<phingcall target="setup:update">
3939
<property name="drush.alias" value="${drush.aliases.ci}"/>
4040
</phingcall>
41+
<phingcall target="ci:toggle-modules"/>
4142
</target>
4243

43-
<target name="ci:toggle-modules" description="Enables modules.ci.enable projects and uninstalls modules.ci.uninstall projects.">
44+
<target name="ci:toggle-modules" description="Enables modules.ci.enable projects and uninstalls modules.ci.uninstall projects." hidden="true">
4445
<phingcall target="setup:toggle-modules">
45-
<param name="enable" value="${modules.ci.enable}"/>
46-
<param name="uninstall" value="${modules.ci.uninstall}"/>
46+
<param name="enable_property" value="modules.ci.enable"/>
47+
<param name="uninstall_property" value="modules.ci.uninstall"/>
4748
</phingcall>
4849
</target>
4950
</project>

phing/tasks/deploy.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,8 @@
168168

169169
<target name="deploy:toggle-modules" description="Enables modules.deploy.enable projects and uninstalls modules.deploy.uninstall projects.">
170170
<phingcall target="setup:toggle-modules">
171-
<param name="enable" value="${modules.deploy.enable}"/>
172-
<param name="uninstall" value="${modules.deploy.uninstall}"/>
171+
<param name="enable_property" value="modules.deploy.enable"/>
172+
<param name="uninstall_property" value="modules.deploy.uninstall"/>
173173
</phingcall>
174174
</target>
175175
</project>

phing/tasks/local-sync.xml

+4-3
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,16 @@
3232

3333
<target name="local:toggle-modules" description="Enables modules.local.enable projects and uninstalls modules.local.uninstall projects.">
3434
<phingcall target="setup:toggle-modules">
35-
<param name="enable" value="${modules.local.enable}"/>
36-
<param name="uninstall" value="${modules.local.uninstall}"/>
35+
<param name="enable_property" value="modules.local.enable"/>
36+
<param name="uninstall_property" value="modules.local.uninstall"/>
3737
</phingcall>
3838
</target>
3939

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">
40+
<target name="local:update" description="Update current database to reflect the state of the Drupal file system; uses local drush alias.">
4141
<phingcall target="setup:update">
4242
<property name="drush.alias" value="${drush.aliases.local}"/>
4343
</phingcall>
44+
<phingcall target="local:toggle-modules"/>
4445
</target>
4546

4647
</project>

phing/tasks/setup.xml

+17-7
Original file line numberDiff line numberDiff line change
@@ -265,13 +265,23 @@
265265
</target>
266266

267267
<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>
268+
<if>
269+
<isset property="${enable_property}"/>
270+
<then>
271+
<drush command="pm-enable" assume="yes">
272+
<param>${${enable_property}}</param>
273+
<option name="skip"></option>
274+
</drush>
275+
</then>
276+
</if>
277+
<if>
278+
<isset property="${uninstall_property}"/>
279+
<then>
280+
<drush command="pm-uninstall" assume="yes">
281+
<param>${${uninstall_property}}</param>
282+
</drush>
283+
</then>
284+
</if>
275285
</target>
276286

277287
</project>

template/composer.json

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
}
99
],
1010
"require": {
11+
1112
"cweagans/composer-patches": "dev-master#5456199acdcc16b243814aa45259f4c56272a634 as 1.5.0",
1213
"drupal/acquia_connector": "^8.1.5",
1314
"drupal/acsf": "^8.1.32",

0 commit comments

Comments
 (0)