From c3fa64a0e2836c1c5373ec76f5771f506b9136a8 Mon Sep 17 00:00:00 2001 From: xavileon Date: Fri, 21 Oct 2011 14:54:33 -0400 Subject: [PATCH] First commit of LXC code --- sliver_lxc.py | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 sliver_lxc.py diff --git a/sliver_lxc.py b/sliver_lxc.py new file mode 100644 index 0000000..49ebb1c --- /dev/null +++ b/sliver_lxc.py @@ -0,0 +1,31 @@ +# + +"""LXC slivers""" + +class Sliver_LXC(accounts.Account): + """This class wraps LXC commands""" + + SHELL = '/bin/bash' + TYPE = 'sliver.LXC' + + def __init__(self): + pass + + @staticmethod + def create(name, rec = None): + print "TODO create" + + @staticmethod + def destroy(name): + print "TODO destroy" + + def start(self, delay=0): + print "TODO start" + + def stop(self): + print "TODO stop" + + def is_running(self): + print "TODO is_running" + + -- 2.43.0