def scpTo(host, src, dst, user=None, options=None, log=False):
    """
    Blocking function to copy scp a file to a host

    Returns the exit code
    """
    return runProgramRunner(scpToA(host, src, dst, user, options, log=log))
Exemplo n.º 2
0
Arquivo: ssh.py Projeto: carze/vappio
def scpTo(host, src, dst, user=None, options=None, log=False):
    """
    Blocking function to copy scp a file to a host

    Returns the exit code
    """
    return runProgramRunner(scpToA(host, src, dst, user, options, log=log))
Exemplo n.º 3
0
Arquivo: ssh.py Projeto: carze/vappio
def runSystemSSH(host, cmd, stdoutf, stderrf, user=None, options=None, log=False):
    """
    Blocking version of runSystemSSHA

    Returns the exit code
    """
    return runProgramRunner(runSystemSSHA(host, cmd, stdoutf, stderrf, user, options, log=log))
Exemplo n.º 4
0
def runSystemInstanceEx(*args, **kwargs):
    """
    Blocking and throws an exception on failure
    """
    pr = runSystemInstanceA(*args, **kwargs)
    exitCode = runProgramRunner(pr)
    if exitCode != 0:
        raise ProgramRunError(pr.cmd, exitCode)
Exemplo n.º 5
0
Arquivo: ssh.py Projeto: carze/vappio
def runSystemSSHEx(host, cmd, stdoutf, stderrf, user=None, options=None, log=False):
    """
    Blocking version of runSystemSSHA, throws an exception on failure though
    """
    pr = runSystemSSHA(host, cmd, stdoutf, stderrf, user, options, log=log)
    exitCode = runProgramRunner(pr)
    if exitCode != 0:
        raise ProgramRunError(pr.cmd, exitCode)
def scpToEx(host, src, dst, user=None, options=None, log=False):
    """
    Blocking function to copy scp a file to a host

    Throws an exception if it fails
    """
    pr = scpToA(host, src, dst, user, options, log=log)
    exitCode = runProgramRunner(pr)
    if exitCode != 0:
        raise ProgramRunError(pr.cmd, exitCode)
Exemplo n.º 7
0
Arquivo: ssh.py Projeto: carze/vappio
def scpFromEx(host, src, dst, user=None, options=None, log=False):
    """
    Blocking function to copy scp a file from a host

    Throws an exception if it fails
    """
    pr = scpFromA(host, src, dst, user, options, log=log)
    exitCode = runProgramRunner(pr)
    if exitCode != 0:
        raise ProgramRunError(pr.cmd, exitCode)
def runSystemSSHEx(host,
                   cmd,
                   stdoutf,
                   stderrf,
                   user=None,
                   options=None,
                   log=False):
    """
    Blocking version of runSystemSSHA, throws an exception on failure though
    """
    pr = runSystemSSHA(host, cmd, stdoutf, stderrf, user, options, log=log)
    exitCode = runProgramRunner(pr)
    if exitCode != 0:
        raise ProgramRunError(pr.cmd, exitCode)
def runSystemSSH(host,
                 cmd,
                 stdoutf,
                 stderrf,
                 user=None,
                 options=None,
                 log=False):
    """
    Blocking version of runSystemSSHA

    Returns the exit code
    """
    return runProgramRunner(
        runSystemSSHA(host, cmd, stdoutf, stderrf, user, options, log=log))
Exemplo n.º 10
0
def runSystemInstance(*args, **kwargs):
    """
    Blocking version fo runSystemInstanceA
    """
    return runProgramRunner(runSystemInstanceA(*args, **kwargs))