All Downloads are FREE. Search and download functionalities are using the official Maven repository.

yakworks.rally.BootStrap.groovy Maven / Gradle / Ivy

There is a newer version: 7.3.77
Show newest version
/*
* Copyright 2021 Yak.Works - Licensed under the Apache License, Version 2.0 (the "License")
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
*/
package yakworks.rally

import grails.core.GrailsApplication
import grails.util.Metadata
import yakworks.rally.seed.RallySeed

class BootStrap {

    GrailsApplication grailsApplication

    def init = { servletContext ->
        def appName = Metadata.current.getApplicationName()
        //onyl run for this, it will try to run this for projects that depend on this in examples so dont
        if(appName == "rally-domain"){
            RallySeed.fullMonty(50)
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy