Parameter 'rec' missing in __init__ method
[nodemanager.git] / sliver_lxc.py
1 #
2
3 """LXC slivers"""
4
5 import accounts
6
7 class Sliver_LXC(accounts.Account):
8     """This class wraps LXC commands"""
9
10     SHELL = '/bin/bash'
11     TYPE = 'sliver.LXC'
12     # Need to add a tag at myplc to actually use this account
13     # type = 'sliver.LXC'
14
15     def __init__(self, rec):
16         print "TODO __init__"
17     
18     @staticmethod
19     def create(name, rec = None):
20         print "TODO create"
21         
22     @staticmethod
23     def destroy(name):
24         print "TODO destroy"
25
26     def start(self, delay=0):
27         print "TODO start"
28     
29     def stop(self):
30         print "TODO stop"
31     
32     def is_running(self):
33         print "TODO is_running"
34
35