/**
  * {@inheritdoc}
  */
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $name = $input->getArgument('name');
     $scalingProfile = $input->getOption('scaling-profile');
     $currentStack = $this->apiStackMapper->create($name);
     $newStack = $this->configStackMapper->create($currentStack->getTemplate()->getName(), $currentStack->getEnvironment(), $scalingProfile, $name);
     $this->stackManager->update($newStack);
 }
 /**
  * {@inheritdoc}
  */
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $name = $input->getArgument('name');
     if (!$input->getOption('really')) {
         throw new InvalidArgumentException('Will not delete a stack without the "--really" flag');
     }
     $stack = $this->apiStackMapper->create($name);
     $this->stackManager->delete($stack);
 }
 /**
  * {@inheritdoc}
  */
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $environment = $input->getArgument('environment');
     $template = $input->getArgument('template');
     $name = $input->getOption('name');
     $scalingProfile = $input->getOption('scaling-profile');
     $stack = $this->configStackMapper->create($template, $environment, $scalingProfile, $name);
     $this->stackManager->create($stack);
 }