예제 #1
0
파일: dvol.py 프로젝트: CorcovadoMing/dvol
class DockerLock(object):
    def __init__(self):
        self.containers = Containers(VOLUME_DRIVER_NAME)

    def acquire(self, volume):
        self.containers.stop(volume)

    def release(self, volume):
        self.containers.start(volume)
예제 #2
0
class DockerLock(object):
    def __init__(self):
        self.containers = Containers(VOLUME_DRIVER_NAME)

    def acquire(self, volume):
        self.containers.stop(volume)

    def release(self, volume):
        self.containers.start(volume)
예제 #3
0
파일: dvol.py 프로젝트: CorcovadoMing/dvol
 def __init__(self):
     self.containers = Containers(VOLUME_DRIVER_NAME)
예제 #4
0
 def __init__(self):
     self.containers = Containers(VOLUME_DRIVER_NAME)