forked from acquia/blt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlocal-sync.xml
46 lines (39 loc) · 1.93 KB
/
local-sync.xml
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
<project name="local" default="local:setup">
<target name="local:drupal:install" description="Installs a specific Drupal site using local drush alias.">
<phingcall target="setup:drupal:install">
<property name="drush.alias" value="${drush.aliases.local}" />
</phingcall>
</target>
<target name="local:refresh" description="Refreshes local environment from upstream testing database." depends="setup:build, local:sync, local:update"/>
<target name="local:setup" description="Install dependencies, builds docroot, installs Drupal; uses local drush alias." depends="local:toggle-modules">
<phingcall target="setup">
<property name="drush.alias" value="${drush.aliases.local}" />
</phingcall>
</target>
<target name="local:sync" description="Synchronize local environment from remote (remote --> local)."
depends="setup:drupal:settings">
<drush command="cc drush"/>
<drush command="sql-drop"/>
<drush command="sql-sync" alias="">
<option name="structure-tables-key">lightweight</option>
<option name="create-db"/>
<param>@${drush.aliases.remote}</param>
<param>@${drush.aliases.local}</param>
</drush>
<drush command="cache-clear">
<param>drush</param>
</drush>
<drush command="cache-rebuild"/>
</target>
<target name="local:toggle-modules" description="Enables modules.local.enable projects and uninstalls modules.local.uninstall projects.">
<phingcall target="setup:toggle-modules">
<param name="enable" value="${modules.local.enable}"/>
<param name="uninstall" value="${modules.local.uninstall}"/>
</phingcall>
</target>
<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">
<phingcall target="setup:update">
<property name="drush.alias" value="${drush.aliases.local}"/>
</phingcall>
</target>
</project>