async runLocally(cmd, { stdout, stderr, ...cmdOptions } = {}) {
    const stdoutPipe = stdout || this.options.stdout
    const stderrPipe = stderr || this.options.stderr

    return exec(cmd, cmdOptions, child => {
      if (stdoutPipe)
        child.stdout
          .pipe(new LineWrapper({ prefix: `@${this.remote.host} ` }))
          .pipe(stdoutPipe)

      if (stderrPipe)
        child.stderr
          .pipe(new LineWrapper({ prefix: `@${this.remote.host}-err ` }))
          .pipe(stderrPipe)
    })
  }
Method used to run a command locally.

@private
@param {string} cmd
@param {object} [options]
@param {Buffer} [options.stdout] stdout buffer
@param {Buffer} [options.stderr] stderr buffer
@param {...object} [options.cmdOptions] Command options
@returns {ExecResult}
@throws {ExecError}