Package de.saumya.mojo.gem
Class PushMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
de.saumya.mojo.jruby.AbstractJRubyMojo
de.saumya.mojo.gem.AbstractGemMojo
de.saumya.mojo.gem.PushMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
goal to push a given gem or a gem artifact to rubygems.org via the
command "gem push {gem}"
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Filearguments for the ruby script given through file parameter.protected Stringarguments for the ruby script given through file parameter.protected Objectprotected booleanskip the pushng the gemFields inherited from class de.saumya.mojo.gem.AbstractGemMojo
binDirectory, gemHome, gemHomes, gemPath, gemsConfig, gemsInstaller, gemUseSystem, includeGemsInResources, includeLibDirectoryInResources, includeOpenSSL, includeProvidedRubygemsInResources, includeRubygemsInResources, includeRubygemsInTestResources, installRDoc, installRI, manager, plugin, supportNative, unzipFields inherited from class de.saumya.mojo.jruby.AbstractJRubyMojo
addProjectClasspath, args, classRealm, DEFAULT_JRUBY_VERSION, eclipseRefresh, eclipseWatches, env, factory, JRUBY_COMPLETE, JRUBY_CORE, JRUBY_STDLIB, jrubyFork, jrubyJvmArgs, jrubySwitches, jrubyVerbose, libDirectory, localRepository, logger, project, repositorySystem, rubySourceDirectoryFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class de.saumya.mojo.gem.AbstractGemMojo
addResource, executeJRuby, gemHome, getRemoteRepos, newScriptFactoryMethods inherited from class de.saumya.mojo.jruby.AbstractJRubyMojo
getDefaultJRubyVersion, getJrubyVersion, getProjectClasspath, launchDirectory, resolveJRubyArtifact, resolveJRubyCompleteArtifact, resolveJRubyStdlibArtifactMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
skip
@Parameter(property="push.skip", defaultValue="false") protected boolean skipskip the pushng the gem -
pushArgs
arguments for the ruby script given through file parameter. -
gem
arguments for the ruby script given through file parameter. -
repoSession
-
-
Constructor Details
-
PushMojo
public PushMojo()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Specified by:
executein interfaceorg.apache.maven.plugin.Mojo- Overrides:
executein classAbstractGemMojo- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
executeWithGems
public void executeWithGems() throws org.apache.maven.plugin.MojoExecutionException, ScriptException, IOException, org.apache.maven.plugin.MojoFailureException, GemException- Specified by:
executeWithGemsin classAbstractGemMojo- Throws:
org.apache.maven.plugin.MojoExecutionExceptionScriptExceptionIOExceptionorg.apache.maven.plugin.MojoFailureExceptionGemException
-