Interface GemPackager

All Known Implementing Classes:
DefaultGemPackager

public interface GemPackager
A low level component that manufactures the actual Gem file.
  • Method Summary

    Modifier and Type
    Method
    Description
    createGem(Gem gem, File targetDirectory)
    This method will create the GEM.
    createGemStub(GemSpecification gemspec, File targetDirectory)
    This method will create the GEM stub with only gemspec and not data.
  • Method Details

    • createGemStub

      File createGemStub(GemSpecification gemspec, File targetDirectory) throws IOException
      This method will create the GEM stub with only gemspec and not data. It will do NO validation at all, just blindly create the Gem using supplied stuff.
      Parameters:
      gemspec - The Gem::Specification to embed into Gem.
      targetDirectory - The directory where the manufactured Gem should be saved.
      Returns:
      gemFile The File location of the manufactured Gem.
      Throws:
      IOException
    • createGem

      File createGem(Gem gem, File targetDirectory) throws IOException
      This method will create the GEM. It will do NO validation at all, just blindly create the Gem using supplied stuff.
      Parameters:
      gem - The Gem::Specification and the files to embed into Gem.
      targetDirectory - The directory where the manufactured Gem should be saved.
      Returns:
      gemFile The File location of the manufactured Gem.
      Throws:
      IOException