Beispiel #1
0
def get_new_command(command):
    dir = shells.quote(_tar_file(command.script_parts)[1])
    return shells.and_('mkdir -p {dir}', '{cmd} -C {dir}') \
        .format(dir=dir, cmd=command.script)
Beispiel #2
0
def get_new_command(command):
    return u'{} -d {}'.format(command.script, quote(_zip_file(command)[:-4]))
Beispiel #3
0
def get_new_command(command):
    dir = shells.quote(_tar_file(command.script_parts)[1])
    return shells.and_('mkdir -p {dir}', '{cmd} -C {dir}') \
        .format(dir=dir, cmd=command.script)