예제 #1
0
파일: orch.py 프로젝트: openstack/solar
def create(plan):
    uid = graph.create_plan(plan).graph['uid']
    remember_uid(uid)
    click.echo(uid)
예제 #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)
예제 #3
0
파일: conftest.py 프로젝트: openstack/solar
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)
예제 #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)
예제 #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)
예제 #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)
예제 #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)
예제 #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)
예제 #9
0
def create(plan):
    uid = graph.create_plan(plan).graph['uid']
    remember_uid(uid)
    click.echo(uid)
예제 #10
0
파일: orch.py 프로젝트: CGenie/solar
def create(plan):
    click.echo(graph.create_plan(plan.read()).graph['uid'])
예제 #11
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)
예제 #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)
예제 #13
0
파일: orch.py 프로젝트: sand8080/solar
def create(plan):
    click.echo(graph.create_plan(plan.read()))