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

Commit

Permalink
Allow config override for sync:refresh. (#1930)
Browse files Browse the repository at this point in the history
* Allow config override for sync:refresh.

* Update RefreshCommand.php
  • Loading branch information
thom8 authored and grasmash committed Sep 7, 2017
1 parent 1ef5e5c commit 9f81157
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
5 changes: 5 additions & 0 deletions config/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,11 @@ sync:
- styles
- css
- js
commands:
- setup:composer:install
- sync
- setup:update
- frontend

# Custom tasks that are triggered at pre-defined times in the build process.
# The tasks hook into BLT's existing commands.
Expand Down
9 changes: 3 additions & 6 deletions src/Robo/Commands/Sync/RefreshCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,11 @@ protected function refreshMultisite($multisite_name) {
* local db, re-imports config, and executes db updates.
*
* @command sync:refresh
*
* @aliases sync
*/
public function refreshDefault() {
$this->invokeCommands([
'setup:composer:install',
'sync',
'setup:update',
'frontend',
]);
$this->invokeCommands($this->getConfigValue('sync.commands'));
}

}

0 comments on commit 9f81157

Please sign in to comment.