Interface GemPackager

  • All Known Implementing Classes:
    DefaultGemPackager

    public interface GemPackager
    A low level component that manufactures the actual Gem file.
    Author:
    cstamas, mkristian
    • Method Detail

      • createGemStub

        java.io.File createGemStub​(GemSpecification gemspec,
                                   java.io.File targetDirectory)
                            throws java.io.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:
        java.io.IOException
      • createGem

        java.io.File createGem​(Gem gem,
                               java.io.File targetDirectory)
                        throws java.io.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:
        java.io.IOException