def destroy(ctx, compute_environment): """ Destroy an existing compute environment. """ mgr = BatchManager(yml=ctx.obj['CONFIG']) mgr.disable_compute_environment(compute_environment) time.sleep(1) mgr.destroy_compute_environment(compute_environment)
def disable(ctx, compute_environment): """ Disable an existing compute environment. """ mgr = BatchManager(yml=ctx.obj['CONFIG']) mgr.disable_compute_environment(compute_environment)