StackFormation\Observer::printOutputs PHP Method

printOutputs() protected method

protected printOutputs ( )
    protected function printOutputs()
    {
        $this->output->writeln("== OUTPUTS ==");
        try {
            $rows = [];
            foreach ($this->stack->getOutputs() as $key => $value) {
                $value = strlen($value) > 100 ? substr($value, 0, 100) . "..." : $value;
                $rows[] = [$key, $value];
            }
            $table = new Table($this->output);
            $table->setHeaders(['Key', 'Value'])->setRows($rows);
            $table->render();
        } catch (\Exception $e) {
            // never mind...
        }
    }