Package br.com.objectos.way.ssh

Examples of br.com.objectos.way.ssh.Scp


  protected void execute0(KdoEclipseMirrorOptions options) {
    Directory eclipseVar = dirs.eclipseVar();
    File targetFile = options.getTargetFile(eclipseVar);
    String remote = options.getRemoteTarget(targetFile);

    Scp scp = WaySSH.scp()
        .file(targetFile)
        .toHost(options.server)
        .at(remote)
        .send();

    if (!scp.success()) {
      List<Exception> exs = scp.getExceptions();
      for (Exception ex : exs) {
        ex.printStackTrace();
      }
    }
  }
View Full Code Here


    File distfiles = new File(mountDir, "/usr/portage/distfiles");
    File packages = new File(mountDir, "/usr/portage/packages");
    List<File> dirs = ImmutableList.of(distfiles, packages);

    for (File dir : dirs) {
      Scp scp = WaySSH.scp()
          .file(dir)
          .toHost(options.server)
          .at("/var/www/localhost/htdocs/kdo/os/" + options.version)
          .send();

      if (!scp.success()) {
        List<Exception> exs = scp.getExceptions();
        for (Exception ex : exs) {
          ex.printStackTrace();
        }
      }
    }
View Full Code Here

TOP

Related Classes of br.com.objectos.way.ssh.Scp

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.