Exemplo n.º 1
0
def delete_container(service, deploy_uuid):
    dp = DeployService(service.uuid, deploy_uuid=deploy_uuid)
    return dp.delete_container()
Exemplo n.º 2
0
def deploy_f(service_uuid, deploy_uuid):
    dp = DeployService(service_uuid, deploy_uuid)
    dp.deploy()
    dp.delete_images()
Exemplo n.º 3
0
def restart_f(service_uuid, deploy_uuid, hard_restart=False):
    dp = DeployService(service_uuid, deploy_uuid)
    dp.restart_deploy(hard_restart=hard_restart)
Exemplo n.º 4
0
def run_script(service, script_name, args):
    dp = DeployService(service.uuid, None)
    dp.run_script(script_name, args=args)