Package org.torquebox.web.rails

Examples of org.torquebox.web.rails.RailsMetaData


        if (DeploymentUtils.isUnitRootless( unit )) {
            return;
        }
       
        RubyAppMetaData rubyAppMetaData = unit.getAttachment( RubyAppMetaData.ATTACHMENT_KEY );
        RailsMetaData railsAppMetaData = unit.getAttachment( RailsMetaData.ATTACHMENT_KEY );
       
        if ( rubyAppMetaData == null || railsAppMetaData == null) {
            return;
        }
       
        File railsRoot = rubyAppMetaData.getRoot();
        railsAppMetaData.setVersionSpec( determineRailsVersion( railsRoot ) );
    }
View Full Code Here


        VirtualFile root = resourceRoot.getRoot();

        try {
            if (isRailsApplication( root )) {
                RackMetaData rackAppMetaData = unit.getAttachment( RackMetaData.ATTACHMENT_KEY );
                RailsMetaData railsAppMetaData = unit.getAttachment( RailsMetaData.ATTACHMENT_KEY );

                if (rackAppMetaData == null) {
                    rackAppMetaData = new RackMetaData();
                    rackAppMetaData.attachTo( unit );
                }

                if (railsAppMetaData == null) {
                    railsAppMetaData = new RailsMetaData();
                    unit.putAttachment( RailsMetaData.ATTACHMENT_KEY, railsAppMetaData );
                }
            }
        } catch (IOException e) {
            throw new DeploymentUnitProcessingException("Error processing rails file: ", e);
View Full Code Here

        if (DeploymentUtils.isUnitRootless( unit )) {
            return;
        }
        ResourceRoot resourceRoot = unit.getAttachment( Attachments.DEPLOYMENT_ROOT );
        RackMetaData rackAppMetaData = unit.getAttachment( RackMetaData.ATTACHMENT_KEY );
        RailsMetaData railsAppMetaData = unit.getAttachment( RailsMetaData.ATTACHMENT_KEY );

        if (rackAppMetaData == null) {
            return;
        }
View Full Code Here

        if (DeploymentUtils.isUnitRootless( unit )) {
            return;
        }
        RubyAppMetaData rubyAppMetaData = unit.getAttachment( RubyAppMetaData.ATTACHMENT_KEY );
        RackMetaData rackAppMetaData = unit.getAttachment( RackMetaData.ATTACHMENT_KEY );
        RailsMetaData railsAppMetaData = unit.getAttachment( RailsMetaData.ATTACHMENT_KEY );

        if ( rubyAppMetaData == null || rackAppMetaData == null || railsAppMetaData == null ) {
            return;
        }
       
View Full Code Here

TOP

Related Classes of org.torquebox.web.rails.RailsMetaData

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.