Exemplo n.º 1
0
Arquivo: util.py Projeto: baude/atomic
def is_backend_available(backend):
    # Local import to avoid circular imports
    import Atomic.backendutils as backendutils
    beu = backendutils.BackendUtils()
    if backend in [x().backend for x in beu.available_backends]:
        return True
    return False
Exemplo n.º 2
0
 def configure(self):
     """
     Atomic libs require root.
     """
     self.cli.demands.root_user = True
     self.be_utils = backendutils.BackendUtils()
     self.debug = self.base.conf.debuglevel > 5
Exemplo n.º 3
0
 def __init__(self):
     """
     Constructs the Mount class with a mountpoint.
     Optional: mount a running container live (read/write)
     """
     super(Mount, self).__init__()
     self.mountpoint = ""
     self.live = False
     self.shared = False
     self.storage = ""
     self.options = ""
     self.user = util.is_user_mode()
     self.beu = backendutils.BackendUtils()
Exemplo n.º 4
0
 def __init__(self):
     super(Images, self).__init__()
     self.be_utils = backendutils.BackendUtils()