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

Commit 1b171aa

Browse files
committed
Calling toggle modules within setup and setup:update targets.
1 parent f9262a3 commit 1b171aa

File tree

4 files changed

+19
-25
lines changed

4 files changed

+19
-25
lines changed

phing/tasks/ci.xml

+4-8
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
<phingcall target="setup">
1515
<property name="drush.alias" value="${drush.aliases.ci}"/>
1616
<property name="create_alias" value="n"/>
17+
<property name="enable_property" value="modules.ci.enable"/>
18+
<property name="uninstall_property" value="modules.ci.uninstall"/>
1719
</phingcall>
1820
</target>
1921

@@ -37,14 +39,8 @@
3739
<target name="ci:update" description="Update current database to reflect the state of the Drupal file system; uses ci drush alias." hidden="true">
3840
<phingcall target="setup:update">
3941
<property name="drush.alias" value="${drush.aliases.ci}"/>
40-
</phingcall>
41-
<phingcall target="ci:toggle-modules"/>
42-
</target>
43-
44-
<target name="ci:toggle-modules" description="Enables modules.ci.enable projects and uninstalls modules.ci.uninstall projects." hidden="true">
45-
<phingcall target="setup:toggle-modules">
46-
<param name="enable_property" value="modules.ci.enable"/>
47-
<param name="uninstall_property" value="modules.ci.uninstall"/>
42+
<property name="enable_property" value="modules.ci.enable"/>
43+
<property name="uninstall_property" value="modules.ci.uninstall"/>
4844
</phingcall>
4945
</target>
5046
</project>

phing/tasks/deploy.xml

+3-8
Original file line numberDiff line numberDiff line change
@@ -157,19 +157,14 @@
157157
</delete>
158158
</target>
159159

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.">
161161
<phingcall target="setup:update">
162+
<param name="enable_property" value="modules.deploy.enable"/>
163+
<param name="uninstall_property" value="modules.deploy.uninstall"/>
162164
<property name="drush.alias" value="self"/>
163165
<!-- Most sites store their version-controlled configuration in /config/default. -->
164166
<!-- ACE internally sets the vcs configuration directory to /config/default, so we use that. -->
165167
<property name="cm.core.config-dir" value="vcs"/>
166168
</phingcall>
167169
</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_property" value="modules.deploy.enable"/>
172-
<param name="uninstall_property" value="modules.deploy.uninstall"/>
173-
</phingcall>
174-
</target>
175170
</project>

phing/tasks/local-sync.xml

+5-9
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@
88

99
<target name="local:refresh" description="Refreshes local environment from upstream testing database." depends="setup:build, local:sync, local:update"/>
1010

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.">
1212
<phingcall target="setup">
1313
<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"/>
1416
</phingcall>
1517
</target>
1618

@@ -30,18 +32,12 @@
3032
<drush command="cache-rebuild"/>
3133
</target>
3234

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_property" value="modules.local.enable"/>
36-
<param name="uninstall_property" value="modules.local.uninstall"/>
37-
</phingcall>
38-
</target>
39-
4035
<target name="local:update" description="Update current database to reflect the state of the Drupal file system; uses local drush alias.">
4136
<phingcall target="setup:update">
4237
<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"/>
4340
</phingcall>
44-
<phingcall target="local:toggle-modules"/>
4541
</target>
4642

4743
</project>

phing/tasks/setup.xml

+7
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,9 @@
158158

159159
<phingcall target="setup:config-import"/>
160160

161+
<!-- enable_property and uninstall_property must be set at this time. -->
162+
<phingcall target="setup:update"/>
163+
161164
<!-- Set sites directory file permissions. -->
162165
<echo>Making ${docroot}/sites/default writable.</echo>
163166
<chmod mode="0755" failonerror="false">
@@ -225,6 +228,10 @@
225228
</target>
226229

227230
<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+
228235
<!-- Import configuration before executing updates, in case any db updates are dependent on new configs to be imported. -->
229236
<drush command="config-import" assume="yes" alias="${drush.alias}">
230237
<option name="partial"></option>

0 commit comments

Comments
 (0)