示例#1
0
文件: ugo_boot.py 项目: rubot/ugo
def ugo_boot(f):
    print f
    if not f.file:
        list_files(BOOTSCRIPT_PATH)
    else:
        script = "%s/%s" % (BOOTSCRIPT_PATH, f.file)
        if f.verbose > 0:
            print 'Executing %s' % script
        subprocess.call(script, shell=True)
示例#2
0
文件: ugo_list.py 项目: rubot/ugo
def ugo_list(args):
    if not args.project:
        print list_projects()
    else:
        list_files("%s/%s" % (UGO_PATH, args.project))