예제 #1
0
def run_job(host, job):
    tpl = common.get_command(host, job)
    command = tpl[0]
    args = tpl[1]
    argv = [command]
    argv.extend(args)
    common.exec_job(argv)
예제 #2
0
파일: ssh.py 프로젝트: branan/moulbuild
def run_job(host, job):
    tpl = common.get_command(host, job)
    command = tpl[0]
    args = tpl[1]
    argv = ["ssh", "-t", "%s@%s" % (host["ssh_user"], host["ssh_host"]), command]
    argv.extend(args)
    common.exec_job(argv)
예제 #3
0
파일: local.py 프로젝트: branan/moulbuild
def run_job(host,job):
    tpl = common.get_command(host,job)
    command = tpl[0]
    args = tpl[1]
    argv = [command]
    argv.extend(args)
    common.exec_job(argv)
예제 #4
0
파일: vbox.py 프로젝트: daela/moulbuild
def run_job(host,job):
    tpl = common.get_command(host,job)
    command = tpl[0]
    args = tpl[1]
    argv = ["VBoxManage", "--nologo", "guestcontrol", host["vbox_name"], "execute", "--image", command, "--username", host["vbox_user"], "--password", host["vbox_pass"], "--wait-exit", "--wait-stdout", "--verbose"]
    if len(args) != 0:
        argv.append("--")
        argv.extend(args)
    common.exec_job(argv)
예제 #5
0
파일: ssh.py 프로젝트: daela/moulbuild
def run_job(host, job):
    tpl = common.get_command(host, job)
    command = tpl[0]
    args = tpl[1]
    argv = [
        "ssh", "-t",
        "%s@%s" % (host["ssh_user"], host["ssh_host"]), command
    ]
    argv.extend(args)
    common.exec_job(argv)