Display the outcome of the installation.

@return void
429737
protected function displayOutcome()
    {
        $this->info('______________________________________');
        $this->info(' ');
        $this->info('You can now visit: "'.config('app.url').'/'.config('eyewitness.base_uri').'" to see your dashboard (you will need your keys above to login).');
        $this->info(' ');
    }
767855
protected function finish()
    {
        if ($this->firstUser !== null) {
            $this->step(++$this->step, 'Setup Complete!');
            $this->writeWelcome();

            $branding = $this->app['config']->get('/general/branding/path', '/bolt');
            $this->io->listing([
                'You may now login to your new site with the user name "<question>' . $this->firstUser['username'] . '</question>" ' .
                'via your site URI: <question>' . $branding . '</question>',
            ]);

            return 0;
        }
        $this->step(++$this->step, 'Setup Updated!');
        $this->writeWelcome();

        return 0;
    }
767550
function printResults()
    {
        $results = $this->resultList();
        foreach ( $results as $result )
        {
            $this->display( $result );
        }
    }
818710
public function done()
	{
		// Compute the totall length of the output
		$length = $this->contentLength + $this->initMessageLength;

		// Back up all the way
		$this->backspace($length, true);

		// In case this gets used again...
		$this->contentLength     = 0;
		$this->initMessageLength = 0;
	}
677251
protected function displayReleases()
    {
        if (!$this->command) {
            return;
        }

        $key = 0;
        $rows = [];
        $releases = $this->releasesManager->getValidationFile();

        // Append the rows
        foreach ($releases as $name => $state) {
            $icon = $state ? '✓' : '✘';
            $color = $state ? 'green' : 'red';
            $date = DateTime::createFromFormat('YmdHis', $name)->format('Y-m-d H:i:s');
            $date = sprintf('<fg=%s>%s</fg=%s>', $color, $date, $color);

            // Add color to row
            $rows[] = [$key, $name, $date, $icon];
            ++$key;
        }

        // Render table
        $this->command->comment('Here are the available releases :');
        $this->command->table(
            ['#', 'Path', 'Deployed at', 'Status'],
            $rows
        );

        return $rows;
    }
1322057
public function onKernelRequest()
    {
        if ($this->executed) return;
        
        $installerScript = $this->scriptFactory->createScript('PostBootInstaller');
        $installerScript->setContainer($this->container)
                        ->executeActionsFromFile($this->basePath . '/.PostInstall');

        $installerScript = $this->scriptFactory->createScript('PostBootUninstaller');
        $installerScript->setContainer($this->container)
                        ->executeActionsFromFile($this->basePath . '/.PostUninstall');

        $this->executed = true;
    }
1227253
public function perform()
    {
        if (!$this->verifyConfigured() || !$this->verifyEnvironment()) {
            return;
        }

        $found = false;
        $count = $this->option('one') ? 1 : PHP_INT_MAX;

        while ($count > 0 && ($migration = $this->migrator->run())) {
            $found = true;
            $count--;

            $this->sprintf(
                "<info>Migration <comment>%s</comment> was successfully executed.</info>",
                $migration->getState()->getName()
            );
        }

        if (!$found) {
            $this->writeln("<fg=red>No outstanding migrations were found.</fg=red>");
        }
    }
911052
public function showSummary()
    {
        foreach ( $this->finalOutputMessageArray as $messageEntry )
        {
            if ( $messageEntry['label'] !== null )
            {
                $this->cli->output( $this->cli->stylize( 'bold', $messageEntry['label'] ) );
            }

            foreach ( $messageEntry['messages'] as $msg )
            {
                $this->cli->output( $msg);
            }
            $this->cli->output();
        }
    }
616172
public function result()
    {

        // Don't bother if it didn't go well
        if ($this->_res == false) {
            return false;
        }

        // it did; continue
        else {

            // Store rows here
            $rows = [];

            // start off printers list
            $rows[] = array(
                'type' => 'header',
                'columns' => array(
                    array(5, 'Printers'),
                ),
            );
            $rows[] = array(
                'type' => 'header',
                'columns' => array(
                    'Name',
                    array(4, 'Status'),
                ),
            );

            // show printers if we have them
            if (count($this->_res['printers']) == 0) {
                $rows[] = array('type' => 'none', 'columns' => array(array(5, 'None found')));
            } else {
                foreach ($this->_res['printers'] as $printer) {
                    $rows[] = array(
                        'type' => 'values',
                        'columns' => array(
                            $printer['name'],
                            array(4, $printer['status']),
                        ),
                    );
                }
            }

            // show printer queue list
            $rows[] = array(
                'type' => 'header',
                'columns' => array(
                    array(5, 'Queue'),
                ),
            );

            $rows[] = array(
                'type' => 'header',
                'columns' => array(
                    'Rank',
                    'Owner',
                    'Job',
                    'Files',
                    'Size',
                ),
            );

            // Go through each item in the lsit
            if (count($this->_res['queue']) == 0) {
                $rows[] = array('type' => 'none', 'columns' => array(array(5, 'Empty')));
            } else {
                foreach ($this->_res['queue'] as $job) {
                    $rows[] = array(
                        'type' => 'values',
                        'columns' => array(
                            $job['rank'],
                            $job['owner'],
                            $job['job'],
                            $job['files'],
                            $job['size'],
                        ),
                    );
                }
            }

            // give info
            return array(
                'root_title' => 'CUPS Printer Status',
                'rows' => $rows,
            );
        }
    }
1237368
function render()
    {
        if (!isset($this->result)) {
            $this->usageError('Nothing to render!');
        }

        $baseViewFilePath = dirname(__FILE__).DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'views';

        if (!empty($_SERVER['argv'])) {
            $viewFilename = $baseViewFilePath.DIRECTORY_SEPARATOR.'console'.DIRECTORY_SEPARATOR.'index.php';
        } else {
            $viewFilename = $baseViewFilePath.DIRECTORY_SEPARATOR.'web'.DIRECTORY_SEPARATOR.'index.php';
        }

        $this->renderViewFile($viewFilename, $this->result);
    }
286204
public function draw(): void
	{
		// Don't draw progess bar if there are 0 items

		if($this->items === 0)
		{
			return;
		}

		// Calculate percent

		$percent = (float) min(($this->progress / $this->items), 1);

		// Build progress bar

		$progressBar = $this->buildProgressBar($percent);

		// Draw progressbar

		$this->output->write("\r" . $this->prefix . $progressBar);

		// If we're done then we'll add a newline to the output

		if($this->progress === $this->items)
		{
			$this->output->write(PHP_EOL);
		}
	}
405125
public function display()
	{
		$options = $this->_compileOptions();		
		$command = system('sudo fbi --noverbose ' .  $this->_compileOptions() . ' ' .$this->file . ' > /dev/null 2>&1');

		/**
		 * If $displayFor is set to 0, then the application doesn't need to be terminated. It's showing
		 * indefinetly. 
		 */
		if( $this->displayFor > 0 ) 
		{
			sleep($this->displayFor);
			$this->terminate();
		}
	}
1214174
public function view()
    {
        $this->set('title', $this->title);
        $this->set('buttonText', $this->buttonText);
        $this->set('baseSearchPath', $this->baseSearchPath);
        $this->set('postTo_cID', $this->postTo_cID);

        if ((string) $this->resultsURL !== '') {
            $resultsPage = null;
            $resultsURL = $this->resultsURL;
        } else {
            $resultsPage = $this->postTo_cID ? Page::getById($this->postTo_cID) : null;
            if (is_object($resultsPage) && !$resultsPage->isError()) {
                $resultsURL = $resultsPage->getCollectionPath();
            } else {
                $resultsPage = null;
                $c = Page::getCurrentPage();
                $resultsURL = $c->getCollectionPath();
            }
        }

        $resultsURL = $this->app->make('helper/text')->encodePath($resultsURL);

        $this->set('resultTargetURL', $resultsURL);
        if ($resultsPage !== null) {
            $this->set('resultTarget', $resultsPage);
        } else {
            $this->set('resultTarget', $resultsURL);
        }

        //run query if display results elsewhere not set, or the cID of this page is set
        if ($resultsPage === null && (string) $this->resultsURL === '') {
            if ((string) $this->request->request('query') !== '' || $this->request->request('akID') || $this->request->request('month')) {
                $this->do_search();
            }
        }
    }
288925
public function main()
    {
        $projectFilter = [
            'provider'   => $this->provider,
            'repository' => $this->repository,
            'result'     => ['success', 'warning']
        ];
        
        $projectFilter['state'] = $this->state ? : ['complete'];

        if ($this->reference) {
            $projectFilter['ref'] = $this->reference;
        }

        // Get the build list
        $builds = $this->getClient()->getBuilds($projectFilter);
        
        if (empty($builds['_embedded']['builds'])) {
            $message = 'No build found for the project "' . $this->provider . '/' . $this->repository . '"';
            if ($this->reference) {
                $message.= ' on the reference  "' . $this->reference . '"';
            }
            throw new \BuildException($message);
        }

        if ($this->destination) {
            // Get the package download url of the last build
            $package = $this->getClient()->downloadPackage([
                'provider' => $this->provider,
                'repository' => $this->repository,
                'buildId' => $builds['_embedded']['builds'][0]['buildId'],
                'packageType' => 'deploy',
                'destination' => $this->destination
            ]);
        } else {
            // Get the package download url of the last build
            $package = $this->getClient()->getPackage([
                'provider' => $this->provider,
                'repository' => $this->repository,
                'buildId' => $builds['_embedded']['builds'][0]['buildId'],
                'packageType' => 'deploy'
            ]);
        }
        
        if ($this->property) {
            $this->getProject()->setProperty($this->property, $package[$this->destination ? 'path' : 'url']);
        }
    }
245988
public function results()
    {
        $out = [''];

        $total    = $this->runner->totalCount;
        $passed   = count($this->runner->passed);
        $failures = count($this->runner->failures);
        $errors   = count($this->runner->errors);
        $skipped  = count($this->runner->skipped);

        $results   = [];
        $results[] = $this->green(self::INDICATOR).' Passes    '.$passed;
        $results[] = $this->red(self::INDICATOR).' Failures  '.$failures;
        $results[] = $this->yellow(self::INDICATOR).' Errors    '.$errors;
        $results[] = $this->magenta(self::INDICATOR).' Skipped   '.$skipped;

        $box = new Box($results, [
            'borderColor' => self::YELLOW,
            'paddingX'    => 1,
        ]);
        $box->setTitle('Results');
        $out[] = $box;

        foreach ($this->runner->failures as $test) {
            $out[] = '';
            $out[] = $this->red('FAILED - '.$test->name);
            $out[] = $test->getFailureMessage();
        }

        foreach ($this->runner->errors as $test) {
            $out[] = '';
            $out[] = $this->yellow('ERROR - '.$test->name);
            $out[] = $test->getErrorMessage();
        }

        $count = $this->green("$passed / $total");
        if ($passed !== $total) {
            $count = $this->red("$passed / $total");
        }
        $out[] = '';
        $out[] = "$count tests passed successfully.";

        echo $this->render(implode("\n", $out));

        if ($this->runner->options->coverage->enable === true) {
            echo "\n";
            echo $this->gray->render('Calculating Coverage...');
            echo "\n";

            $this->runner->coverage->calculate();
            echo $this->runner->coverage->output();
        }

        exit((int) ($passed !== $total));
    }
1072455
protected function process()
    {
        $copyTo = null;

        if (null !== $this->option('install')) {
            $copyTo = $this->_('/usr/local/bin/%name%', $this->getApplication()->getName());
            if (true === is_string($this->option('install'))) {
                $copyTo = $this->option('install');
            }
        }

        $this->getBoxService()->package(null, $copyTo);
    }
414
public function display(): void
    {
        if (null === $this->format) {
            $this->format = self::DEFAULT_FORMAT;
        }

        $this->render($this->buildLine());
    }