Skip to content

Commit 3be0f9a

Browse files
author
Nicolas Huray
committed
minor
1 parent 47ea18e commit 3be0f9a

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

run.sh

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ if [ -z "$WERCKER_AWS_CODE_DEPLOY_S3_BUCKET" ]; then
8484
fi
8585

8686
# ----- Install AWS Cli -----
87-
# see documentation : http://docs.aws.amazon.com/cli/latest/userguide/installing.html
87+
# see documentation http://docs.aws.amazon.com/cli/latest/userguide/installing.html
8888
# ---------------------------
8989

9090
# Check AWS is installed
@@ -99,7 +99,7 @@ if ! type_exists 'aws'; then
9999
fi
100100

101101
# ----- Configure -----
102-
# see documentation :
102+
# see documentation
103103
# http://docs.aws.amazon.com/cli/latest/reference/configure/index.html
104104
# ----------------------
105105
set -e
@@ -123,7 +123,7 @@ fi
123123
set +e
124124

125125
# ----- Application -----
126-
# see documentation :
126+
# see documentation
127127
# http://docs.aws.amazon.com/cli/latest/reference/deploy/get-application.html
128128
# http://docs.aws.amazon.com/cli/latest/reference/deploy/create-application.html
129129
# ----------------------
@@ -141,7 +141,7 @@ APPLICATION_EXISTS_OUTPUT=$($APPLICATION_EXISTS 2>&1)
141141

142142
if [ $? -ne 0 ]; then
143143
warn "$APPLICATION_EXISTS_OUTPUT"
144-
h2 "Creating application '$APPLICATION_NAME' :"
144+
h2 "Creating application '$APPLICATION_NAME'"
145145

146146
# Create application
147147
APPLICATION_CREATE="aws deploy create-application --application-name $APPLICATION_NAME"
@@ -160,7 +160,7 @@ fi
160160

161161

162162
# ----- Deployment config (optional) -----
163-
# see documentation : http://docs.aws.amazon.com/cli/latest/reference/deploy/create-deployment-config.html
163+
# see documentation http://docs.aws.amazon.com/cli/latest/reference/deploy/create-deployment-config.html
164164
# ----------------------
165165
DEPLOYMENT_CONFIG_NAME=${WERCKER_AWS_CODE_DEPLOY_DEPLOYMENT_CONFIG_NAME:-CodeDeployDefault.OneAtATime}
166166
MINIMUM_HEALTHY_HOSTS=${WERCKER_AWS_CODE_DEPLOY_MINIMUM_HEALTHY_HOSTS:-type=FLEET_PERCENT,value=75}
@@ -194,7 +194,7 @@ fi
194194

195195

196196
# ----- Deployment group -----
197-
# see documentation : http://docs.aws.amazon.com/cli/latest/reference/deploy/create-deployment-config.html
197+
# see documentation http://docs.aws.amazon.com/cli/latest/reference/deploy/create-deployment-config.html
198198
# ----------------------
199199
# Deployment group variables
200200
DEPLOYMENT_GROUP=${WERCKER_AWS_CODE_DEPLOY_DEPLOYMENT_GROUP_NAME:-$WERCKER_DEPLOYTARGET_NAME}
@@ -241,7 +241,7 @@ fi
241241

242242

243243
# ----- Push a revision to S3 -----
244-
# see documentation : http://docs.aws.amazon.com/cli/latest/reference/deploy/push.html
244+
# see documentation http://docs.aws.amazon.com/cli/latest/reference/deploy/push.html
245245
# ----------------------
246246
REVISION=${WERCKER_AWS_CODE_DEPLOY_REVISION:-$APPLICATION_NAME-$APPLICATION_VERSION.zip}
247247
REVISION_DESCRIPTION="$WERCKER_AWS_CODE_DEPLOY_REVISION_DESCRIPTION"
@@ -275,7 +275,7 @@ success "Pushing revision '$REVISION' to S3 succeeded"
275275

276276

277277
# ----- Register revision -----
278-
# see documentation : http://docs.aws.amazon.com/cli/latest/reference/deploy/register-application-revision.html
278+
# see documentation http://docs.aws.amazon.com/cli/latest/reference/deploy/register-application-revision.html
279279
# ----------------------
280280
h1 "Step 6: Registering revision"
281281

@@ -307,7 +307,7 @@ success "Registering revision '$REVISION' succeeded"
307307

308308

309309
# ----- Deployment -----
310-
# see documentation : http://docs.aws.amazon.com/cli/latest/reference/deploy/create-deployment.html
310+
# see documentation http://docs.aws.amazon.com/cli/latest/reference/deploy/create-deployment.html
311311
# ----------------------
312312
DEPLOYMENT_DESCRIPTION="$WERCKER_AWS_CODE_DEPLOY_DEPLOYMENT_DESCRIPTION"
313313
DEPLOYMENT_OVERVIEW=${WERCKER_AWS_CODE_DEPLOY_DEPLOYMENT_OVERVIEW:-true}
@@ -328,7 +328,7 @@ if [ $? -ne 0 ]; then
328328
fi
329329

330330
DEPLOYMENT_ID=$(echo $DEPLOYMENT_OUTPUT | jsonValue 'deploymentId' | tr -d ' ')
331-
note "You can follow your deployment at : https://console.aws.amazon.com/codedeploy/home#/deployments/$DEPLOYMENT_ID"
331+
note "You can follow your deployment at: https://console.aws.amazon.com/codedeploy/home#/deployments/$DEPLOYMENT_ID"
332332

333333
if [ 'true' = "$DEPLOYMENT_OVERVIEW" ]; then
334334
h1 "Deployment Overview"
@@ -363,7 +363,7 @@ if [ 'true' = "$DEPLOYMENT_OVERVIEW" ]; then
363363
SKIPPED=$(cat /tmp/$DEPLOYMENT_ID | jsonValue 'Skipped' | tr -d '\r\n' | tr -d ' ')
364364
SUCCEEDED=$(cat /tmp/$DEPLOYMENT_ID | jsonValue 'Succeeded' | tr -d '\r\n' | tr -d ' ')
365365
FAILED=$(cat /tmp/$DEPLOYMENT_ID | jsonValue 'Failed' | tr -d '\r\n' | tr -d ' ')
366-
echo "| In Progress: $IN_PROGRESS | Pending : $PENDING | Skipped : $SKIPPED | Succeeded : $SUCCEEDED | Failed : $FAILED |"
366+
echo "| In Progress: $IN_PROGRESS | Pending: $PENDING | Skipped: $SKIPPED | Succeeded: $SUCCEEDED | Failed: $FAILED |"
367367

368368
# Deployment succeeded
369369
if [ "$STATUS" = 'Succeeded' ]; then

0 commit comments

Comments
 (0)