Example #1
0
def compose_scale(descriptor, file, namespace):
    project = compose.load_project(file, namespace, None)
    scale_dict = util.parse_scale(descriptor)
    project.scale(scale_dict, namespace)
Example #2
0
def compose_restart(file, strict, namespace):
    project = compose.load_project(file, namespace, None)
    if strict:
        project.strict_restart()
    else:
        project.restart()
Example #3
0
def compose_rm(file, namespace):
    project = compose.load_project(file, namespace, None)
    project.rm(namespace)
Example #4
0
def compose_ps(file, namespace):
    project = compose.load_project(file, namespace, None)
    project.ps(namespace)
Example #5
0
def compose_stop(file, namespace):
    project = compose.load_project(file, namespace, None)
    project.stop()
Example #6
0
def compose_scale(descriptor, file, namespace):
    project = compose.load_project(file, namespace, None)
    scale_dict = util.parse_scale(descriptor)
    project.scale(scale_dict, namespace)
Example #7
0
def compose_up(file, strict, namespace, region):
    project = compose.load_project(file, namespace, region)
    if strict:
        project.strict_up()
    else:
        project.up()
Example #8
0
def compose_rm(file, namespace):
    project = compose.load_project(file, namespace, None)
    project.rm(namespace)
Example #9
0
def compose_restart(file, strict, namespace):
    project = compose.load_project(file, namespace, None)
    if strict:
        project.strict_restart()
    else:
        project.restart()
Example #10
0
def compose_stop(file, namespace):
    project = compose.load_project(file, namespace, None)
    project.stop()
Example #11
0
def compose_ps(file, namespace):
    project = compose.load_project(file, namespace, None)
    project.ps(namespace)
Example #12
0
def compose_up(file, strict, namespace, region, ignore):
    project = compose.load_project(file, namespace, region)
    if strict:
        project.strict_up(ignore)
    else:
        project.up(ignore)