Package org.platformlayer.ops

Examples of org.platformlayer.ops.FileUpload


        } else {
          sshAuthorizations += "\n";
        }
        sshAuthorizations += serialized + "\n";

        FileUpload upload = FileUpload.build(sshAuthorizations);
        upload.mode = "644";
        upload.path = sshAuthorizationsFile;

        FileUpload.upload(target, sshAuthorizationsFile, sshAuthorizations);
View Full Code Here


      log.info("Uploading zone file: " + path);

      // Upload then atomic move
      File tempFile = new File(targetServer.getTempDir(), zoneFile.getKey());

      FileUpload upload = FileUpload.build(data);
      upload.path = tempFile;
      upload.mode = "0644";

      target.doUpload(upload);
View Full Code Here

    }

    if (shouldUpload) {
      target.mkdir(transportDirectory);

      FileUpload upload = FileUpload.build(script);
      upload.path = scriptFile;
      upload.mode = "0755";
      target.doUpload(upload);
    }
View Full Code Here

TOP

Related Classes of org.platformlayer.ops.FileUpload

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.