Beispiel #1
0
def create(plan):
    uid = graph.create_plan(plan).graph['uid']
    remember_uid(uid)
    click.echo(uid)
Beispiel #2
0
def seq_plan():
    seq_path = os.path.join(
        os.path.dirname(os.path.realpath(__file__)), 'orch_fixtures',
        'sequential.yaml')
    return graph.create_plan(seq_path, save=False)
Beispiel #3
0
def plan_from_fixture(name):
    riak_path = os.path.join(
        os.path.dirname(os.path.realpath(__file__)), 'orch_fixtures',
        '%s.yaml' % name)
    return graph.create_plan(riak_path)
Beispiel #4
0
def riak_plan():
    riak_path = os.path.join(os.path.dirname(os.path.realpath(__file__)),
                             'orch_fixtures', 'riak.yaml')
    return graph.create_plan(riak_path, save=False)
Beispiel #5
0
def simple():
    simple_path = os.path.join(os.path.dirname(os.path.realpath(__file__)),
                               'orch_fixtures', 'simple.yaml')
    return graph.create_plan(simple_path)
Beispiel #6
0
def plan_from_fixture(name):
    riak_path = os.path.join(os.path.dirname(os.path.realpath(__file__)),
                             'orch_fixtures', '%s.yaml' % name)
    return graph.create_plan(riak_path)
Beispiel #7
0
def riak_plan():
    riak_path = os.path.join(
        os.path.dirname(os.path.realpath(__file__)),
        'orch_fixtures',
        'riak.yml')
    return graph.create_plan(riak_path, save=False)
Beispiel #8
0
def simple():
    simple_path = os.path.join(
        os.path.dirname(os.path.realpath(__file__)), 'orch_fixtures',
        'simple.yaml')
    return graph.create_plan(simple_path)
Beispiel #9
0
def create(plan):
    uid = graph.create_plan(plan).graph['uid']
    remember_uid(uid)
    click.echo(uid)
Beispiel #10
0
def create(plan):
    click.echo(graph.create_plan(plan.read()).graph['uid'])
def riak_plan():
    riak_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), "orch_fixtures", "riak.yaml")
    return graph.create_plan(riak_path, save=False)
Beispiel #12
0
def seq_plan():
    seq_path = os.path.join(
        os.path.dirname(os.path.realpath(__file__)),
        'orch_fixtures',
        'sequential.yaml')
    return graph.create_plan(seq_path, save=False)
Beispiel #13
0
def create(plan):
    click.echo(graph.create_plan(plan.read()))