public function getOutput($key)
{
$outputs = $this->getOutputs();
if (!isset($outputs[$key])) {
throw new OutputNotFoundException("Output '{$key}' not found in stack '{$this->getName()}'");
}
if ($outputs[$key] == '****') {
throw new \Exception("Trying to retrieve a 'NoEcho' value (Key: '{$key}')");
}
return $outputs[$key];
}