StackFormation\Command\Stack\ObserveCommand::executeWithStack PHP Method

executeWithStack() protected method

protected executeWithStack ( Stack $stack, Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$stack StackFormation\Stack
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
    protected function executeWithStack(Stack $stack, InputInterface $input, OutputInterface $output)
    {
        $observer = new Observer($stack, $this->getStackFactory(), $output);
        if ($input->getOption('deleteOnTerminate')) {
            $observer->deleteOnSignal();
        }
        return $observer->observeStackActivity();
    }