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

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


    return options.extract;
  }

  @Override
  protected Messages configureMessages(Messages messages) {
    Directory eclipseInstall = dirs.eclipseInstall();

    return super.configureMessages(messages)
        .actionName("extract")
        .actionDescription("Unpacking to %s.", eclipseInstall.getAbsolutePath());
  }
View Full Code Here


    super(installer);
  }

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

    infoAction("eworld");
    info("Emerging world.");

    chrootAt(mountDir)
View Full Code Here

  @Override
  void execute() {
    info("bash");
    infoAction("Applying objectos settings to your .bashrc file");

    Directory dir = dirs().userHome();

    tryToBackup(dir);

    resourcesAt("/kdo/dots/bash")
        .map("bashrc", ".bashrc")
        .copyTo(dir);

    Directory bashrc = dir.dirAt(".bashrc.d");

    resourcesAt("/kdo/dots/bashrc")
        .addFromListAt("/kdo/dots/bashrc.list")
        .copyTo(bashrc);
  }
View Full Code Here

        .actionDescription("Unpacking to %s.", eclipseInstall.getAbsolutePath());
  }

  @Override
  protected void execute0(KdoEclipseInstallOptions options) {
    Directory eclipseInstall = dirs.eclipseInstall();
    eclipseInstall.deleteContents();

    Directory kdo = dirs.kdo();

    File file = options.getEclipseFile(kdo);

    Untar.file(file)
        .bunzip2()
View Full Code Here

  @Override
  protected void executeCommand(KdoEclipsePrepareOptions options) {
    options.all();

    HttpServer server = options.fileServer();
    Directory eclipseVar = dirs.eclipseVar();
    File eclipseTar = options.getKeplerFile(eclipseVar);
    Directory eclipseDir = eclipseVar.dirAt("eclipse");

    infoAction("dirs");
    info("Preparing directories.");

    eclipseDir.deleteContents();

    if (options.download) {
      download(server, eclipseVar);
    }
View Full Code Here

    super(prepare);
  }

  @Override
  void execute() {
    Directory mountDir = pojo.getMountDir();
    List<String> commandList = from(pojo.getRealtekList())
        .transformAndConcat(ToCommandList.INSTANCE)
        .toList();

    infoAction("realtek");
View Full Code Here

  @Override
  void execute() {
    HttpServer server = pojo.getServer();
    String stage3Name = pojo.getStage3();
    Directory osVar = pojo.getTempDir();

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

    server.download(stage3Name)
View Full Code Here

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

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

    }
  }

  private void executeBdo(EtoOsPrepareOptions options) {
    OsDirs dirs = options.dirs(etoDirs);
    Directory mountDir = dirs.mountDir();

    BdoInstances bdos = BdoInstances.of()
        .add(BdoInstance.mysql()
            .named("eclipse")
            .port(9000)
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.