def compose_scale(descriptor, file, namespace): project = compose.load_project(file, namespace, None) scale_dict = util.parse_scale(descriptor) project.scale(scale_dict, namespace)
def compose_restart(file, strict, namespace): project = compose.load_project(file, namespace, None) if strict: project.strict_restart() else: project.restart()
def compose_rm(file, namespace): project = compose.load_project(file, namespace, None) project.rm(namespace)
def compose_ps(file, namespace): project = compose.load_project(file, namespace, None) project.ps(namespace)
def compose_stop(file, namespace): project = compose.load_project(file, namespace, None) project.stop()
def compose_up(file, strict, namespace, region): project = compose.load_project(file, namespace, region) if strict: project.strict_up() else: project.up()
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)