GitS3\Console\Commands\DeployCommand::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)
    {
        $application = $this->getApplication();
        $this->output = $output;
        $this->bucket = $application->getBucket();
        $this->finder = new Finder();
        $this->finder->ignoreDotFiles(false);
        $this->finder->ignoreVCS(true);
        $this->finder->files()->in($application->getConfig()->getPath());
        if ($this->hasNotBeenInitialized()) {
            $this->init();
            $application->saveLastDeploy();
            $output->writeln('Lock file initialized. Deployment complete!');
        } elseif ($application->isUpToDate()) {
            $output->writeln('Already up-to-date.');
        } else {
            $this->deployCurrentCommit();
            $application->saveLastDeploy();
            $output->writeln('Lock file updated. Deployment complete!');
        }
    }