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

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


  private final Directory etoMountDir;

  private final Directory userSettings;

  public IroDirs(RioDirs rioDirs) {
    Directory userVar = rioDirs.userVar();
    iroVar = userVar.dirAt("iro");

    etoVar = iroVar.dirAt("eto");
    etoMountDir = etoVar.dirAt("gentoo");

    Directory userSettings = rioDirs.userSettings();
    this.userSettings = userSettings.dirAt("iro");
  }
View Full Code Here


  public String dev(int i) {
    return device + i;
  }

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

    super(installer);
  }

  @Override
  void execute() {
    Directory mountDir = pojo.getMountDir();
    List<String> rcUpdateList = FluentIterable.from(pojo.getRcUpdateList())
        .transform(ToCommand.INSTANCE)
        .toList();

    infoAction("rcupdate");
View Full Code Here

  }

  @Override
  protected Messages configureMessages(Messages messages) {
    KdoEclipseMirrorOptions options = messages.getOptions();
    Directory eclipseVar = dirs.eclipseVar();
    File targetFile = options.getTargetFile(eclipseVar);
    String remote = options.getRemoteTarget(targetFile);

    return super.configureMessages(messages)
        .actionName("upload")
View Full Code Here

        .actionDescription("Uploading to %s", remote);
  }

  @Override
  protected void execute0(KdoEclipseMirrorOptions options) {
    Directory eclipseVar = dirs.eclipseVar();
    File targetFile = options.getTargetFile(eclipseVar);
    String remote = options.getRemoteTarget(targetFile);

    Scp scp = WaySSH.scp()
        .file(targetFile)
View Full Code Here

    super(setup);
  }

  @Override
  void execute() {
    Directory mountDir = pojo.getMountDir();
    List<String> symlinkList = from(pojo.getSymlinkList())
        .transform(Functions.toStringFunction())
        .toList();

    infoAction("symlink");
View Full Code Here

  }

  @Override
  protected Messages configureMessages(Messages messages) {
    KdoEclipseInstallOptions options = messages.getOptions();
    Directory kdo = dirs.kdo();
    URL url = options.getEclipseUrl(kdo);

    return super.configureMessages(messages)
        .actionName("download")
        .actionDescription("Downloading %s.", url.toString());
View Full Code Here

        .actionDescription("Downloading %s.", url.toString());
  }

  @Override
  protected void execute0(KdoEclipseInstallOptions options) {
    Directory kdo = dirs.kdo();
    URL url = options.getEclipseUrl(kdo);

    File file = options.getEclipseFile(kdo);

    Rio.copy(url, file);
View Full Code Here

  }

  @Override
  protected Messages configureMessages(Messages messages) {
    KdoEclipseMirrorOptions options = messages.getOptions();
    Directory targetDir = dirs.eclipseVar();
    File file = options.getTargetFile(targetDir);

    return super.configureMessages(messages)
        .actionName("package")
        .actionDescription("Building tar archive: %s", file.getAbsolutePath());
View Full Code Here

        .actionDescription("Building tar archive: %s", file.getAbsolutePath());
  }

  @Override
  protected void execute0(KdoEclipseMirrorOptions options) {
    Directory targetDir = dirs.eclipseVar();
    File file = options.getTargetFile(targetDir);

    Tar tar = Tar.changeTo(targetDir)
        .add("eclipse")
        .bzip2()
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.