コード例 #1
0
ファイル: linchpin.py プロジェクト: cloudimmense/linch-pin
def rise(config, pf, target):
    """ rise module of linchpin cli """
    init_dir = os.getcwd()
    pfs = list_by_ext(init_dir, "PinFile")
    if len(pfs) == 0:
        display("ERROR:001")
    if len(pfs) > 1:
        display("ERROR:002")
    pf = pfs[0]
    lpcli = LinchpinCli()
    output = lpcli.lp_rise(pf, target)
コード例 #2
0
ファイル: linchpin.py プロジェクト: greg-hellings/linch-pin
def rise(config, pf, target):
    """ rise module of linchpin cli """
    init_dir = os.getcwd()
    pfs = list_by_ext(init_dir, "PinFile")
    if len(pfs) == 0:
        display("ERROR:001")
    if len(pfs) > 1:
        display("ERROR:002")
    pf = pfs[0]
    lpcli = LinchpinCli()
    output = lpcli.lp_rise(pf, target)
コード例 #3
0
ファイル: test_linchpin_cli.py プロジェクト: seandst/linchpin
 def test_lp_rise_with_wrong_target(self):
     lp = LinchpinCli()
     target = "dosenotexists"
     pf = im.get_mock_pf_path()
     lp.lp_rise(pf, target)
コード例 #4
0
ファイル: test_linchpin_cli.py プロジェクト: seandst/linchpin
 def test_lp_rise_wthout_params(self):
     lp = LinchpinCli()
     lp.lp_rise()