protected function execute(InputInterface $input, OutputInterface $output)
 {
     $hookManager = HookManager::getDefaultInstance($this->projectBasepath)->setOutput($output)->setProgressBar(new ProgressBar($output));
     return $hookManager->checkHooks($input->getOption(self::OPTION_SKIP_OK_MESSAGE));
 }
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $hookManager = HookManager::getDefaultInstance($this->projectBasepath)->setOutput($output)->setProgressBar(new ProgressBar($output));
     return $hookManager->uninstallHooks();
 }
 public function testHookCheckExceptions()
 {
     $hookManager = new HookManager($this->basePath->getChild('project')->url(), GitHelper::getHooksSourcePath(), 'foo');
     $this->setExpectedException('Exception', '', HookManager::BAD_HOOKS_DESTINATION_PATH_EXCEPTION_CODE);
     $hookManager->checkHooks();
 }