protected function exec($command) { if (!$this->context->get('filesystem')->exec($command, array($this, 'logOutput'), array($this, 'logErrors'))) { throw new dmException(implode(', ', $this->context->get('filesystem')->getLastExec())); } }