Package com.puppetlabs.geppetto.forge

Examples of com.puppetlabs.geppetto.forge.AlreadyPublishedException


      throw new ForgeException("The \"metadata.json\" found in archive: " + moduleArchive.getAbsolutePath() +
          " has no version");

    try {
      if(metadataRepo.resolve(metadata.getName(), metadata.getVersion()) != null)
        throw new AlreadyPublishedException("Module " + metadata.getName() + ':' + metadata.getVersion() +
            " has already been published");
    }
    catch(HttpResponseException e) {
      // A SC_NOT_FOUND can be expected and is OK.
      if(e.getStatusCode() != HttpStatus.SC_NOT_FOUND)
View Full Code Here

TOP

Related Classes of com.puppetlabs.geppetto.forge.AlreadyPublishedException

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.