Examples of fileAt()


Examples of br.com.objectos.way.base.io.Directory.fileAt()

    return String.format("%s-%s.tar.gz", getCode(), version);
  }

  public File getStage3File(OsDirs dirs) {
    Directory osVar = dirs.osVar();
    return osVar.fileAt(getStage3Name());
  }

  public String sfdiskName() {
    return String.format("disk/%s.sfdisk", hd);
  }
View Full Code Here

Examples of br.com.objectos.way.base.io.Directory.fileAt()

  }

  @Override
  void execute() {
    Directory osVar = pojo.getTempDir();
    File stage3File = osVar.fileAt(pojo.getStage3());

    infoAction("unpack");
    info("Upacking to target device.");

    Directory installMountPoint = pojo.getMountDir();
View Full Code Here

Examples of br.com.objectos.way.base.io.Directory.fileAt()

  }

  private void download(EtoOsLivecdOptions options) {
    HttpServer server = options.fileServer();
    Directory osVar = dirs.osVar();
    File isoFile = osVar.fileAt("install-amd64-minimal.iso");

    infoAction("download");
    info("Downloading required files.");

    download(server).to(osVar)
View Full Code Here

Examples of br.com.objectos.way.base.io.Directory.fileAt()

        .exec();
  }

  private void stage(EtoOsLivecdOptions options) {
    Directory osVar = dirs.osVar();
    File isoFile = osVar.fileAt("install-amd64-minimal.iso");
    Directory isoDir = dirs.isoMountDir();
    Directory livecdDir = dirs.livecdMountDir();

    infoAction("stage");
    info("Staging required files.");
View Full Code Here

Examples of br.com.objectos.way.base.io.Directory.fileAt()

    String server = pojo.getServer();

    infoAction("distfiles");
    info("Uploading distfiles to portage mirror.");

    File distfiles = mountDir.fileAt("/usr/portage/distfiles");

    scpFile(distfiles)
        .toHost(server)
        .at("/var/www/localhost/htdocs/gentoo/distfiles")
        .send();
View Full Code Here

Examples of br.com.objectos.way.base.io.Directory.fileAt()

    ssh(server).connect()
        .execute("mkdir -p %s", remotePath)
        .disconnect();

    File packages = mountDir.fileAt("usr/portage/packages");
    scpFile(packages)
        .toHost(server)
        .at(remotePath)
        .send();
  }
View Full Code Here

Examples of br.com.objectos.way.base.io.Directory.fileAt()

        .copyTo(osVar);

    Procs.newCommand()
        .add("sh")
        .add("-c")
        .add("sfdisk %s < %s", options.device, osVar.fileAt(sfdiskName).getAbsolutePath())
        .exec();

    mk2fs(dev1);
    mk4fs(dev3);
    mkswap(dev2);
View Full Code Here

Examples of br.com.objectos.way.base.io.Directory.fileAt()

  }

  private void download(OsLivecdOptions options) {
    HttpServer server = options.fileServer();
    Directory osVar = dirs.osVar();
    File isoFile = osVar.fileAt("install-amd64-minimal.iso");

    infoAction("download");
    info("Downloading required files.");

    download(server).to(osVar)
View Full Code Here

Examples of br.com.objectos.way.base.io.Directory.fileAt()

        .exec();
  }

  private void stage(OsLivecdOptions options) {
    Directory osVar = dirs.osVar();
    File isoFile = osVar.fileAt("install-amd64-minimal.iso");
    Directory isoDir = dirs.isoMountDir();
    Directory livecdDir = dirs.livecdMountDir();

    infoAction("stage");
    info("Staging required files.");
View Full Code Here

Examples of br.com.objectos.way.base.io.Directory.fileAt()

  }

  public File stage3File(EtoOsDirs dirs) {
    Directory osVar = dirs.osVar();
    String name = String.format("eto-%s.tar.gz", version);
    return osVar.fileAt(name);
  }

}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.