Esempio n. 1
0
def chgrp(path, group):
    run(['chgrp', group, path])
Esempio n. 2
0
def useradd(*args):
    # FIXME: this is a bad way to do things
    # FIXME: sigh. this is going to be a pain to make it idempotent
    run(['useradd'] + list(args))
Esempio n. 3
0
def usermod(*args):
    # FIXME: this is a bad way to do things
    run(['usermod'] + list(args))
Esempio n. 4
0
def ln(*args):
    run(['ln'] + list(args))
Esempio n. 5
0
def mkdir(path, mode=None):
    if mode:
        run(['mkdir', '-m', mode, path])
    else:
        run(['mkdir', path])
Esempio n. 6
0
def groupadd(*args):
    run(['groupadd'] + list(args))
Esempio n. 7
0
def chmod(*args):		
    # FIXME: this is ugly, name the args		
    run(['chmod'] + list(args))
Esempio n. 8
0
def chown(path, user):
    run(['chown', user, path])
Esempio n. 9
0
def systemctl(*args: Tuple[str, ...]) -> None:
    run(['systemctl'] + list(args))
Esempio n. 10
0
 def download(url, output):
     # FIXME: communicate success or failure
     run(['curl', '-L', url, '-o', output])