Implement change registration
[cascardo/ipsilon.git] / ipsilon / helpers / common.py
1 # Copyright (C) 2014 Ipsilon project Contributors, for license see COPYING
2
3 from ipsilon.util.plugin import PluginInstaller
4
5
6 FACILITY = 'environment_helpers'
7
8
9 class EnvHelpersInstaller(object):
10     def __init__(self):
11         self.facility = FACILITY
12         self.ptype = 'helper'
13         self.name = None
14
15     def unconfigure(self, opts, changes):
16         return
17
18     def install_args(self, group):
19         raise NotImplementedError
20
21     def validate_args(self, args):
22         return
23
24     def configure_server(self, opts, changes):
25         raise NotImplementedError
26
27
28 class EnvHelpersInstall(object):
29
30     def __init__(self):
31         pi = PluginInstaller(EnvHelpersInstall, FACILITY)
32         self.plugins = pi.get_plugins()