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.

Author:
cstamas, mkristian

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

Method Detail

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


Copyright © 2012. All Rights Reserved.