Add uninstallation support.
[cascardo/ipsilon.git] / ipsilon / helpers / common.py
old mode 100755 (executable)
new mode 100644 (file)
index 6ec2819..dcbde2b
@@ -1,5 +1,3 @@
-#!/usr/bin/python
-#
 # Copyright (C) 2014  Simo Sorce <simo@redhat.com>
 #
 # see file 'COPYING' for use and warranty information
 from ipsilon.util.plugin import PluginInstaller
 
 
+FACILITY = 'environment_helpers'
+
+
+class EnvHelpersInstaller(object):
+    def __init__(self):
+        self.facility = FACILITY
+        self.ptype = 'helper'
+        self.name = None
+
+    def unconfigure(self, opts):
+        return
+
+    def install_args(self, group):
+        raise NotImplementedError
+
+    def configure_server(self, opts):
+        raise NotImplementedError
+
+
 class EnvHelpersInstall(object):
 
     def __init__(self):
-        pi = PluginInstaller(EnvHelpersInstall)
+        pi = PluginInstaller(EnvHelpersInstall, FACILITY)
         self.plugins = pi.get_plugins()