コード例 #1
0
ファイル: cli.py プロジェクト: vespian/admiral
def delete(ctx, pod):
    pods_conf = u.trim_hash(ctx["pods"], pod)
    ctx["conn"].delete(pods_conf)
コード例 #2
0
ファイル: cli.py プロジェクト: vespian/admiral
def add(ctx, pod):
    pods_conf = u.trim_hash(ctx["pods"], pod)
    ctx["conn"].add(pods_conf)
コード例 #3
0
ファイル: cli.py プロジェクト: vespian/admiral
def set_state(ctx, pod, state):
    # FIXME
    pods_conf = u.trim_hash(ctx["pods"], pod)
    ctx["conn"].set_state(pods_conf, state)