Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

30 lines (21 sloc) 0.79 kB
import grails.util.Metadata
includeTargets << grailsScript("Init")
includeTargets << new File("${cloudBeesPluginDir}/scripts/_CheckConfig.groovy")
includeTargets << new File("${cloudBeesPluginDir}/scripts/_BeesHelper.groovy")
includeTargets << new File("${cloudBeesPluginDir}/scripts/_BeesCommon.groovy")
USAGE = '''
grails bees-app-start [appId]
appId : the application id (defaults to appname)
'''
target(beesAppStart: "Starts all deployed instances of an application.") {
depends(checkConfig, prepareClient)
String appId = buildAppId()
def response
try {
response = beesClient.applicationStart(appId)
} catch (Exception e) {
dealWith e
}
event "StatusFinal", ["Application $appId started successfully. status: $response.status"]
}
setDefaultTarget(beesAppStart)
Jump to Line
Something went wrong with that request. Please try again.