summaryrefslogtreecommitdiffstats
path: root/ipsilon/helpers/common.py
blob: d3f7125e880b0e7cb5764f8500c92ad66a22685c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Copyright (C) 2014 Ipsilon project Contributors, for license see COPYING

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 validate_args(self, args):
        return

    def configure_server(self, opts):
        raise NotImplementedError


class EnvHelpersInstall(object):

    def __init__(self):
        pi = PluginInstaller(EnvHelpersInstall, FACILITY)
        self.plugins = pi.get_plugins()