Package de.saumya.mojo.gems.gem
Interface GemPackager
- All Known Implementing Classes:
DefaultGemPackager
public interface GemPackager
A low level component that manufactures the actual Gem file.
-
Method Summary
Modifier and TypeMethodDescriptionThis 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
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
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
-