Package deploy

Examples of deploy.SecureContext


    String hostPath = doc.getElementsByTagName("host-path").item(0).getTextContent();
    String pathProg = ParsConf.getPathProject();
    String privateKey = ParsConf.getConfig()+File.separatorChar+"pyscript"+File.separatorChar+"id_raspberry_rsa";
    File filename = new File(pathProg);
    String path = filename.getAbsolutePath();
    SecureContext context = new SecureContext(user,host);

    // set optional security configurations.
    context.setTrustAllHosts(true);

    context.setPrivateKeyFile(new File(privateKey));

    try {
      Jscp.exec(context,path, hostPath, Arrays.asList("logs/log[0-9]*.txt","backups")  );
    } catch (IOException e) {
      // TODO Auto-generated catch block
View Full Code Here

TOP

Related Classes of deploy.SecureContext

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.