Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Revert "Revert "Remove unused usage check at start of each script.""

This reverts commit 74c0158.
  • Loading branch information...
commit 94c3f37c8b8284f47b5fc54821558a25464ad722 1 parent 74c0158
Marco Vermeulen authored
View
2  scripts/BeesAppChecksums.groovy
@@ -11,8 +11,6 @@ grails bees-app-checksums [appId]
target(beesAppChecksums: "Returns the checksums for an application.") {
depends(checkConfig, prepareClient)
- if(usage()) return
-
String appId = buildAppId()
def response
View
2  scripts/BeesAppDelete.groovy
@@ -11,8 +11,6 @@ grails bees-app-delete [appId]
target(beesAppDelete: "Delete an application.") {
depends(checkConfig, prepareClient)
- if(usage()) return
-
String appId = buildAppId()
def response
View
4 scripts/BeesAppDeploy.groovy
@@ -15,8 +15,6 @@ grails bees-app-deploy [appId] [tag]
target(beesAppDeploy: "Deploy a new version of an application using a WAR archive file.") {
depends(checkConfig, prepareClient)
- if(usage()) return
-
String appId = buildAppId()
String tag = buildAppTag()
@@ -51,4 +49,4 @@ target(beesAppDeploy: "Deploy a new version of an application using a WAR archiv
}
-setDefaultTarget(beesAppDeploy)
+setDefaultTarget(beesAppDeploy)
View
2  scripts/BeesAppInfo.groovy
@@ -11,8 +11,6 @@ grails bees-app-info [appId]
target(beesAppInfo: "Returns the basic information about an application.") {
depends(checkConfig, prepareClient)
- if(usage()) return
-
String appId = buildAppId()
def info
View
2  scripts/BeesAppList.groovy
@@ -10,8 +10,6 @@ grails bees-app-list
target(beesAppList: "Returns the list of applications available to your account.") {
depends(checkConfig, prepareClient)
- if(usage()) return
-
def response
try{
response = beesClient.applicationList()
View
2  scripts/BeesAppRestart.groovy
@@ -13,8 +13,6 @@ grails bees-app-restart [appId]
target(beesAppRestart: "Restarts all deployed instances of an application.") {
depends(checkConfig, prepareClient)
- if(usage()) return
-
String appId = buildAppId()
def response
View
2  scripts/BeesAppStart.groovy
@@ -13,8 +13,6 @@ grails bees-app-start [appId]
target(beesAppStart: "Starts all deployed instances of an application.") {
depends(checkConfig, prepareClient)
- if(usage()) return
-
String appId = buildAppId()
def response
View
2  scripts/BeesAppStop.groovy
@@ -13,8 +13,6 @@ grails bees-app-stop [appId]
target(beesAppStop: "Stops all deployed instances of an application.") {
depends(checkConfig, prepareClient)
- if(usage()) return
-
String appId = buildAppId()
def response
View
2  scripts/BeesAppTail.groovy
@@ -14,8 +14,6 @@ grails bees-app-tail [appId] [LOGNAME]
target(beesAppTail: "Establishes a persistent connection to the application logs.") {
depends(checkConfig, prepareClient)
- if(usage()) return
-
String log = getOptionalArg(1) ?: 'server'
String appId = buildAppId()
View
1  scripts/BeesDbCreate.groovy
@@ -12,7 +12,6 @@ grails bees-db-create [dbId] [username] [password]
target(beesDbCreate: "Create a new MySQL database.") {
depends(checkConfig, prepareClient)
- if(usage()) return
String dbId = buildDbId()
String username = getOptionalArg(1) ?: dbId
View
3  scripts/BeesDbDrop.groovy
@@ -10,8 +10,7 @@ grails bees-db-drop [dbId]
target(beesDbDrop: "Drop a MySQL database.") {
depends(checkConfig, prepareClient)
- if(usage()) return
-
+
String dbId = buildDbId()
def response
View
3  scripts/BeesDbInfo.groovy
@@ -10,8 +10,7 @@ grails bees-db-info [dbId]
target(beesDbInfo: "Returns information about connecting to a database.") {
depends(checkConfig, prepareClient)
- if(usage()) return
-
+
String dbId = buildDbId()
def info
View
1  scripts/BeesDbList.groovy
@@ -9,7 +9,6 @@ grails bees-db-list
target(beesDbList: "Returns a list of all the databases associated with your account.") {
depends(checkConfig, prepareClient)
- if(usage()) return
def response
try {
View
12 scripts/_BeesCommon.groovy
@@ -1,15 +1,5 @@
import grails.util.Metadata
-usage = {
- if(argsMap.params[0] == 'help'){
- event "StatusFinal", ["\nUsage (optionals in square brackets):\n$USAGE"]
- return true
-
- } else {
- return false
- }
-}
-
buildAppId = {
String account = grailsSettings.config.cloudbees.account
String optionalName = getOptionalArg(0)
@@ -44,4 +34,4 @@ getOptionalArg = { int index = 0 ->
def argsList = argsMap.params
String value = argsList[index]
return value
-}
+}
Please sign in to comment.
Something went wrong with that request. Please try again.