From a3add07e555ef69bb7cda5942ea6091496cf9533 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Apr 27 2014 09:44:38 +0000 Subject: Add the BaseHook object that each plugin must inherit from --- diff --git a/progit/hooks/__init__.py b/progit/hooks/__init__.py new file mode 100644 index 0000000..dc06c65 --- /dev/null +++ b/progit/hooks/__init__.py @@ -0,0 +1,25 @@ +#-*- coding: utf-8 -*- + +""" + (c) 2014 - Copyright Red Hat Inc + + Authors: + Pierre-Yves Chibon + +""" + + +class BaseHook(object): + ''' Base class for progit's hooks. ''' + + name = None + form = None + + def install(): + ''' Method called to install the hook for a project. ''' + pass + + def remove(): + ''' Method called to remove the hook of a project. ''' + pass +