Esempio n. 1
0
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)
Esempio n. 2
0
def ugo_list(args):
    if not args.project:
        print list_projects()
    else:
        list_files("%s/%s" % (UGO_PATH, args.project))