de.saumya.mojo.gems.gem
Class DefaultGemPackager

java.lang.Object
  extended by de.saumya.mojo.gems.gem.DefaultGemPackager
All Implemented Interfaces:
GemPackager

@Component(role=GemPackager.class)
public class DefaultGemPackager
extends Object
implements GemPackager


Constructor Summary
DefaultGemPackager()
           
 
Method Summary
 File createGem(Gem gem, File target)
          This method will create the GEM.
 File createGemStub(GemSpecification gemspec, File target)
          This method will create the GEM stub with only gemspec and not data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultGemPackager

public DefaultGemPackager()
Method Detail

createGemStub

public File createGemStub(GemSpecification gemspec,
                          File target)
                   throws IOException
Description copied from interface: GemPackager
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.

Specified by:
createGemStub in interface GemPackager
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:
IOException

createGem

public File createGem(Gem gem,
                      File target)
               throws IOException
Description copied from interface: GemPackager
This method will create the GEM. It will do NO validation at all, just blindly create the Gem using supplied stuff.

Specified by:
createGem in interface GemPackager
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:
IOException


Copyright © 2011. All Rights Reserved.