Package com.puppetlabs.geppetto.forge.model

Examples of com.puppetlabs.geppetto.forge.model.VersionedName


          return;
        }

        Object[] selection = getSelectedElements();
        if(selection.length == 1) {
          VersionedName mi = (VersionedName) selection[0];
          moduleNameText.setText(mi.getModuleName().toString());
          Version v = mi.getVersion();
          versionRequirementText.setText(v == null
              ? ""
              : v.toString());
        }
      }
View Full Code Here


    return service;
  }

  @Test
  public void testGetRelease() throws IOException {
    testGet(new VersionedName("puppetlabs-java/0.3.0"));
  }
View Full Code Here

  private Files service;

  @Test
  public void testGetFile() throws IOException {
    ByteArrayOutputStream ba = new ByteArrayOutputStream();
    service.download(new VersionedName("puppetlabs-java/0.3.0"), ba);
    assertTrue("No bytes where downloaded", ba.size() > 0);
  }
View Full Code Here

              try {
                MetadataModel model = getModel();
                Object[] results = dialog.getResult();
                if(results.length > 1) {
                  for(Object result : results) {
                    VersionedName module = (VersionedName) result;
                    model.addDependency(
                      module.getModuleName().toString(), module.getVersion().toString());
                  }
                }
                else
                  model.addDependency(dialog.getName(), dialog.getVersionRequirement());
              }
View Full Code Here

      if(toBeEdited == null || !toBeEdited.equals(moduleName))
        for(MetadataModel.Dependency dependency : getModel().getDependencies())
          if(moduleName.toString().equals(nameWithDashSeparator(dependency.getModuleName())))
            return;

      VersionedName vn = new VersionedName(moduleName, metadata.getVersion());
      moduleInfos.put(vn.toString(), vn);
    }
View Full Code Here

TOP

Related Classes of com.puppetlabs.geppetto.forge.model.VersionedName

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.