From 74f27c816b91703f92b7c6eab44e321f8d6b1482 Mon Sep 17 00:00:00 2001 From: Daniel Seifert Date: Fri, 25 Oct 2024 10:29:42 +0200 Subject: [PATCH] clearify task names --- README.md | 4 ++-- deploy.php | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index b32107e..5d65caf 100644 --- a/README.md +++ b/README.md @@ -43,8 +43,8 @@ This command set `current` directory to previous deployment: ## Available tasks -- dep `shop:version` [stage] - show version of current OXID installation -- dep `shop:migrate` [stage] - run all database migrations +- dep `shop:getVersion` [stage] - show version of current OXID installation +- dep `shop:runMigration` [stage] - run all database migrations - dep `setup:createDbConfig` [stage] - generate database configuration file - dep `list`- list all available commands diff --git a/deploy.php b/deploy.php index 028f57f..d6ee382 100644 --- a/deploy.php +++ b/deploy.php @@ -20,7 +20,7 @@ task('deploy:d3OxidTasks', [ ]); desc('run all database migrations'); -task('shop:migrate', [ +task('shop:runMigration', [ 'shop:setShopsOffline', 'shop:executeMigrations', 'shop:setShopsOnline' @@ -39,18 +39,18 @@ task('shop:setShopsOffline', function() { } }); -task('shop:migrate:failed', function() { +task('shop:runMigration:failed', function() { invoke('shop:setShopsOnline'); })->hidden(); -fail('shop:migrate', 'shop:migrate:failed'); +fail('shop:runMigration', 'shop:runMigration:failed'); desc('execute OXID Doctrine migrations'); task('shop:executeMigrations', function () { if (test("[ -f {{current_path}}/vendor/bin/oe-eshop-doctrine_migration ]")) { run('{{bin/php}} {{current_path}}/vendor/bin/oe-eshop-doctrine_migration migrations:migrate'); } -}); +})->hidden();; desc('set shops online'); task('shop:setShopsOnline', function() { @@ -93,7 +93,7 @@ task('setup:createDbConfig', function () { }); desc('show OXID shop version'); -task('shop:version', function () { +task('shop:getVersion', function () { if (test("[ -f {{current_path}}/composer.lock ]")) { cd('{{current_path}}'); info(