Skip to content

Commit

Permalink
feat: default image deployment question to true if docker is installed
Browse files Browse the repository at this point in the history
  • Loading branch information
carlalexander committed Aug 22, 2024
1 parent 2bcb704 commit 44cafd2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Command/Project/InitializeProjectCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
use Ymir\Cli\Process\Process;
use Ymir\Cli\ProjectConfiguration\ProjectConfiguration;
use Ymir\Cli\Support\Arr;
use Ymir\Cli\Tool\Docker;
use Ymir\Cli\Tool\WpCli;

class InitializeProjectCommand extends AbstractCommand
Expand Down Expand Up @@ -143,7 +144,7 @@ protected function perform(Input $input, Output $output)
$this->invoke($output, InstallPluginCommand::NAME);
}

if ($output->confirm('Will you deploy this project using a container image?', false)) {
if ($output->confirm('Do you want to deploy this project using a container image?', Docker::isInstalledGlobally())) {
$this->invoke($output, CreateDockerfileCommand::NAME, ['--configure-project' => null]);
}

Expand Down

0 comments on commit 44cafd2

Please sign in to comment.