diff --git a/README.md b/README.md index c1786c9..59039b8 100644 --- a/README.md +++ b/README.md @@ -46,9 +46,6 @@ composer: install: install --no-dev after: - {php} scripts/myscript.php -writables: - - var/log - - var/cache shared: files: - ".env.config.ini" @@ -56,10 +53,15 @@ shared: - var/log - var/cache - var/db +writables: + paths: + - var/log + - var/cache clear_paths: - - README.md - - package.json - - deploy.yaml + paths: + - README.md + - package.json + - deploy.yaml ``` ## Useful things (for development) diff --git a/src/Action/ClearPathsAction.php b/src/Action/ClearPathsAction.php index bc5f894..49c7a00 100644 --- a/src/Action/ClearPathsAction.php +++ b/src/Action/ClearPathsAction.php @@ -34,7 +34,7 @@ public function run(Config $configuration, Context $context) 'deployment' => $deployment->toArray(), 'deployment_dir' => $deploymentDir, ]); - $clearPaths = $configuration->get('clear_paths', []); + $clearPaths = $configuration->get('clear_paths.paths', []); if (0 == count($clearPaths)) { $this->info( $deployment, diff --git a/src/Action/WritablesAction.php b/src/Action/WritablesAction.php index 8bf0f36..e849d15 100644 --- a/src/Action/WritablesAction.php +++ b/src/Action/WritablesAction.php @@ -32,7 +32,7 @@ public function run(Config $configuration, Context $context) $deployment = $context->getOrThrow('deployment', 'Invalid or missing deployment'); $deploymentDir = $context->getOrThrow('deployment_dir', 'Invalid or missing deployment directory'); $writableMode = Settings::get('build.chmod.writable_folder', Builder::MODE_WRITABLE_DIR); - $writables = $configuration->get('writables', []); + $writables = $configuration->get('writables.paths', []); if (0 == count($writables)) { $this->info( $deployment,