Commit a7087fc3 authored by Jon Pugh's avatar Jon Pugh

Replace custom code with method.

parent f0607ff7
......@@ -83,8 +83,7 @@ class SaveCommand extends Command
{
$class = '\Aegir\Provision\Context\\' . ucfirst($input->getOption('context_type')) . "Context";
$context = new $class($input->getArgument('context_name'),$this->getApplication()->getConfig()->all(), $input->getOptions());
$context = $this->getApplication()->getContext($input->getArgument('context_name'));
foreach ($context->getProperties() as $name => $value) {
$rows[] = [$name, $value];
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment