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