1
0

Allow to deploy without asking

This commit is contained in:
Richard Dern 2024-05-08 15:15:14 +02:00
parent 1d6240afcd
commit 43cf565f8f

View File

@ -30,6 +30,7 @@ public function __construct()
$this->signature = 'bundle:render
{ --a|assets : Rebuild assets - implies <info>-c</info> }
{ --c|clear-cache : Clear cache before rendering }
{ --deploy : Deploy without asking }
{ --d|dry-run : Show what would be done but do nothing }
{ --no-deploy : Do not deploy, do not ask to deploy }
{ --r|recursive : Also render sub-bundles }
@ -213,11 +214,13 @@ private function deploy()
return;
}
// Ask for confirmation
if (!confirm('Ready to deploy?')) {
$this->comment('OK, not deploying!');
if (!$this->option('deploy')) {
// Ask for confirmation
if (!confirm('Ready to deploy?')) {
$this->comment('OK, not deploying!');
return;
return;
}
}
$source = Str::finish($this->targetDisk->path('/'), '/');