Kirby\Cli\Command\Install::execute PHP Method

execute() protected method

protected execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
    protected function execute(InputInterface $input, OutputInterface $output)
    {
        $kit = $input->getOption('kit');
        $kits = ['starterkit', 'plainkit', 'langkit'];
        if (!in_array($kit, $kits)) {
            throw new RuntimeException('Invalid kit name: ' . $kit);
        }
        $output->writeln('');
        $output->writeln('Installing the ' . $kit . '...');
        if ($input->getOption('dev')) {
            $this->dev($input, $output, $kit);
        } else {
            $this->install(['repo' => 'getkirby/' . $kit, 'branch' => 'master', 'path' => $input->getArgument('path'), 'output' => $output, 'success' => 'Kirby is installed!']);
        }
    }