Skip to content

Commit

Permalink
Merge pull request #148 from adevade/fix-optimize-clear-command
Browse files Browse the repository at this point in the history
Change optimize:clean to optimize:clear
  • Loading branch information
lorisleiva authored Nov 2, 2019
2 parents 9864f61 + fb8bb83 commit 5b8a4f5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/all-tasks.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ php artisan deploy:list namespace # List all tasks starting with `namespace:`
| `artisan:migrate:rollback` | Execute artisan migrate:rollback |
| `artisan:migrate:status` | Execute artisan migrate:status |
| `artisan:optimize` | Execute artisan optimize |
| `artisan:optimize:clean` | Execute artisan optimize:clean |
| `artisan:optimize:clear` | Execute artisan optimize:clear |
| `artisan:queue:restart` | Execute artisan queue:restart |
| `artisan:route:cache` | Execute artisan route:cache |
| `artisan:storage:link` | Execute artisan storage:link |
Expand Down
4 changes: 2 additions & 2 deletions src/task/artisan.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@
desc('Execute artisan optimize');
task('artisan:optimize', artisan('optimize', ['min' => 5.7]));

desc('Execute artisan optimize:clean');
task('artisan:optimize:clean', artisan('optimize:clean', ['min' => 5.7]));
desc('Execute artisan optimize:clear');
task('artisan:optimize:clear', artisan('optimize:clear', ['min' => 5.7]));

desc('Execute artisan queue:restart');
task('artisan:queue:restart', artisan('queue:restart'));
Expand Down
2 changes: 1 addition & 1 deletion tests/Features/DeployListTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function it_should_list_all_available_tasks()
$this->assertStringContainsString('artisan:migrate:rollback', $output);
$this->assertStringContainsString('artisan:migrate:status', $output);
$this->assertStringContainsString('artisan:optimize', $output);
$this->assertStringContainsString('artisan:optimize:clean', $output);
$this->assertStringContainsString('artisan:optimize:clear', $output);
$this->assertStringContainsString('artisan:queue:restart', $output);
$this->assertStringContainsString('artisan:route:cache', $output);
$this->assertStringContainsString('artisan:storage:link', $output);
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/recipes/mocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
task('artisan:event:cache', function() {});
task('artisan:config:cache', function() {});
task('artisan:optimize', function() {});
task('artisan:optimize:clean', function() {});
task('artisan:optimize:clear', function() {});

// Mock public info task
task('deploy:info_debug', ['deploy:info']);

0 comments on commit 5b8a4f5

Please sign in to comment.