de.saumya.mojo.rails
Class AbstractRailsMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by de.saumya.mojo.jruby.AbstractJRubyMojo
          extended by de.saumya.mojo.gem.AbstractGemMojo
              extended by de.saumya.mojo.rails.AbstractRailsMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
ConsoleMojo, GenerateMojo, NewMojo, RakeMojo, ServerMojo

public abstract class AbstractRailsMojo
extends AbstractGemMojo

abstract rails mojo which provides a few helper methods and the rails.args parameter.


Field Summary
protected  String args
           
protected  String env
          either development or test or production or whatever else is possible with your config
protected  File railsDir
           
 
Fields inherited from class de.saumya.mojo.gem.AbstractGemMojo
binDirectory, gemArgs, gemHome, gemPath, gemsConfig, gemsInstaller, includeOpenSSL, manager
 
Fields inherited from class de.saumya.mojo.jruby.AbstractJRubyMojo
classRealm, factory, GEM_RUBY_COMMAND, IRB_RUBY_COMMAND, IRB_SWING_RUBY_COMMAND, jrubyArgs, jrubyFork, jrubyGemHome, jrubyGemPath, jrubyVerbose, jrubyVersion, localRepository, logger, project, RAKE_RUBY_COMMAND, repositorySystem
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AbstractRailsMojo()
           
 
Method Summary
protected  File launchDirectory()
           
protected  File railsScriptFile(String command)
           
 
Methods inherited from class de.saumya.mojo.gem.AbstractGemMojo
executeJRuby, executeWithGems, newScriptFactory
 
Methods inherited from class de.saumya.mojo.jruby.AbstractJRubyMojo
execute, resolveJRUBYCompleteArtifact
 
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

args

protected String args

railsDir

protected File railsDir

env

protected String env
either development or test or production or whatever else is possible with your config

Constructor Detail

AbstractRailsMojo

public AbstractRailsMojo()
Method Detail

launchDirectory

protected File launchDirectory()
Overrides:
launchDirectory in class AbstractJRubyMojo

railsScriptFile

protected File railsScriptFile(String command)


Copyright © 2010. All Rights Reserved.