Package de.saumya.mojo.gems.gem
Class DefaultGemPackager
- java.lang.Object
-
- de.saumya.mojo.gems.gem.DefaultGemPackager
-
- All Implemented Interfaces:
GemPackager
@Component(role=GemPackager.class) public class DefaultGemPackager extends java.lang.Object implements GemPackager
-
-
Constructor Summary
Constructors Constructor Description DefaultGemPackager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.FilecreateGem(Gem gem, java.io.File target)This method will create the GEM.java.io.FilecreateGemStub(GemSpecification gemspec, java.io.File target)This method will create the GEM stub with only gemspec and not data.
-
-
-
Method Detail
-
createGemStub
public java.io.File createGemStub(GemSpecification gemspec, java.io.File target) throws java.io.IOException
Description copied from interface:GemPackagerThis 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.- Specified by:
createGemStubin interfaceGemPackager- Parameters:
gemspec- The Gem::Specification to embed into Gem.target- The directory where the manufactured Gem should be saved.- Returns:
- gemFile The File location of the manufactured Gem.
- Throws:
java.io.IOException
-
createGem
public java.io.File createGem(Gem gem, java.io.File target) throws java.io.IOException
Description copied from interface:GemPackagerThis method will create the GEM. It will do NO validation at all, just blindly create the Gem using supplied stuff.- Specified by:
createGemin interfaceGemPackager- Parameters:
gem- The Gem::Specification and the files to embed into Gem.target- The directory where the manufactured Gem should be saved.- Returns:
- gemFile The File location of the manufactured Gem.
- Throws:
java.io.IOException
-
-