Ejemplo n.º 1
0
def apply(obj, f):
    conn = get_cluster_connection(obj)
    for path in f:
        if path == "-":
            content = list(yaml.safe_load_all(sys.stdin))
            cwd = os.getcwd()
        else:
            with open(path, "r") as f:
                content = list(yaml.safe_load_all(f))
                cwd = os.path.dirname(path)
        for doc in content:
            parse_apply(path, conn, cwd, doc)
Ejemplo n.º 2
0
def profile(ctx):
    ctx.obj = get_cluster_connection()
Ejemplo n.º 3
0
def servable(ctx):
    ctx.obj = get_cluster_connection()
Ejemplo n.º 4
0
def app(ctx):
    ctx.obj = get_cluster_connection(ctx.obj)
Ejemplo n.º 5
0
def model(ctx):
    ctx.obj = get_cluster_connection()
def depconf(ctx):
    ctx.obj = get_cluster_connection()