Package de.saumya.mojo.gems.gem
Interface GemPackager
-
- All Known Implementing Classes:
DefaultGemPackager
public interface GemPackagerA low level component that manufactures the actual Gem file.- Author:
- cstamas, mkristian
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.io.FilecreateGem(Gem gem, java.io.File targetDirectory)This method will create the GEM.java.io.FilecreateGemStub(GemSpecification gemspec, java.io.File targetDirectory)This method will create the GEM stub with only gemspec and not data.
-
-
-
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
-
-