Package br.com.objectos.way.base.io

Examples of br.com.objectos.way.base.io.Directory


  }

  @Override
  void execute() {
    HttpServer fileServer = pojo.getFileServer();
    Directory tempDir = pojo.getTempDir();
    Directory mountDir = pojo.getMountDir();

    infoAction("stage");
    info("Staging required files.");

    download(fileServer).to(tempDir)
        .add("stage3-amd64.tar.bz2")
        .add("portage.tar.bz2")
        .exec();

    info();
    info("Unpacking stage3 file.");

    untar(tempDir.fileAt("stage3-amd64.tar.bz2"))
        .bunzip2()
        .preserve()
        .toDir(mountDir);

    info();
    info("Unpacking portage snapshot.");

    untar(tempDir.fileAt("portage.tar.bz2"))
        .bunzip2()
        .preserve()
        .toDir(mountDir.dirAt("usr"));
  }
View Full Code Here


    super(installer);
  }

  @Override
  void execute() {
    Directory mountDir = pojo.getMountDir();

    infoAction("revdep-rebuild");
    info("Running revdep-rebuild.");

    chrootAt(mountDir)
View Full Code Here

    super(installer);
  }

  @Override
  void execute() {
    Directory mountDir = pojo.getMountDir();
    List<GentooChmod> chmodList = pojo.getChmodList();

    infoAction("chmod");
    info("Setting file modes");
View Full Code Here

    super(installer);
  }

  @Override
  void execute() {
    Directory mountDir = pojo.getMountDir();

    infoAction("rio");
    info("Installing rio binaries.");

    pojo.rioInstall.toDir(mountDir);
View Full Code Here

  public String remotePath() {
    return String.format("/var/www/localhost/htdocs/%s/os/%s", getCode(), version);
  }

  public File stage3File(OsDirs dirs) {
    Directory osVar = dirs.osVar();
    String name = String.format("%s-%s.tar.gz", getCode(), version);
    return osVar.fileAt(name);
  }
View Full Code Here

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

  public OsDirs dirs(SaoDirs saoDirs) {
    Directory var = saoDirs.var();
    return new OsDirs(var);
  }
View Full Code Here

  public EtoDirs(RioDirs rioDirs) {
    this.rioDirs = rioDirs;
  }

  public Directory var(String code) {
    Directory userVar = rioDirs.userVar();
    return userVar.dirAt(code);
  }
View Full Code Here

    super(installer);
  }

  @Override
  void execute() {
    Directory mountDir = pojo.getMountDir();
    int profile = pojo.getProfile();
    String kernelVersion = pojo.getKernelVersion();

    infoAction("ekernel");
    info("Emerging kernel.");
View Full Code Here

  public String sshKeyScriptName() {
    return String.format("/etc/local.d/00-%s-ssh-key.start", getCode());
  }

  public OsDirs dirs(SaoDirs saoDirs) {
    Directory var = saoDirs.var();
    return new OsDirs(var);
  }
View Full Code Here

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

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

TOP

Related Classes of br.com.objectos.way.base.io.Directory

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.