TorqueBox 3.1.2

org.torquebox.web.rails.processors
Class RailsVersionProcessor

java.lang.Object
  extended by org.torquebox.web.rails.processors.RailsVersionProcessor
All Implemented Interfaces:
org.jboss.as.server.deployment.DeploymentUnitProcessor

public class RailsVersionProcessor
extends Object
implements org.jboss.as.server.deployment.DeploymentUnitProcessor


Constructor Summary
RailsVersionProcessor()
           
 
Method Summary
 void deploy(org.jboss.as.server.deployment.DeploymentPhaseContext phaseContext)
           
protected  String determineRailsVersion(File railsRoot)
           
protected  String determineVersionTryRails2(File railsRoot)
           
protected  String determineVersionTryRails2Vendor(File railsRoot)
           
protected  String determineVersionTryRails3(File railsRoot)
           
protected  String find(File file, Pattern pattern)
           
 void undeploy(org.jboss.as.server.deployment.DeploymentUnit context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RailsVersionProcessor

public RailsVersionProcessor()
Method Detail

deploy

public void deploy(org.jboss.as.server.deployment.DeploymentPhaseContext phaseContext)
            throws org.jboss.as.server.deployment.DeploymentUnitProcessingException
Specified by:
deploy in interface org.jboss.as.server.deployment.DeploymentUnitProcessor
Throws:
org.jboss.as.server.deployment.DeploymentUnitProcessingException

determineRailsVersion

protected String determineRailsVersion(File railsRoot)
                                throws org.jboss.as.server.deployment.DeploymentUnitProcessingException
Throws:
org.jboss.as.server.deployment.DeploymentUnitProcessingException

determineVersionTryRails2Vendor

protected String determineVersionTryRails2Vendor(File railsRoot)
                                          throws IOException
Throws:
IOException

determineVersionTryRails2

protected String determineVersionTryRails2(File railsRoot)
                                    throws IOException
Throws:
IOException

determineVersionTryRails3

protected String determineVersionTryRails3(File railsRoot)
                                    throws IOException
Throws:
IOException

find

protected String find(File file,
                      Pattern pattern)
               throws IOException
Throws:
IOException

undeploy

public void undeploy(org.jboss.as.server.deployment.DeploymentUnit context)
Specified by:
undeploy in interface org.jboss.as.server.deployment.DeploymentUnitProcessor

TorqueBox 3.1.2

Copyright © 2015 JBoss by Red Hat. All Rights Reserved.