示例#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)