Skip to content

Commit 4d801c0

Browse files
author
Dominik Przybyl
committed
reformat Taskfile.yml files
1 parent c62661f commit 4d801c0

File tree

3 files changed

+22
-24
lines changed

3 files changed

+22
-24
lines changed

pkg/project/app_classic/Taskfile.yml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -51,23 +51,21 @@ tasks:
5151
desc: start AEM instances and dispatcher
5252
aliases: [ up ]
5353
cmds:
54-
- task: aem:up
55-
- task: dispatcher:up
54+
- task: aem:start
55+
- task: dispatcher:start
5656

5757
stop:
5858
desc: stop AEM instances and dispatcher
5959
aliases: [ down ]
6060
cmds:
61-
- task: dispatcher:down
62-
- task: aem:down
61+
- task: dispatcher:stop
62+
- task: aem:stop
6363

6464
restart:
6565
desc: restart AEM instances and dispatcher
6666
cmds:
67-
- task: aem:down
68-
- task: aem:up
69-
- task: dispatcher:down
70-
- task: dispatcher:up
67+
- task: stop
68+
- task: start
7169

7270
destroy:
7371
desc: destroy AEM instances and dispatcher
@@ -123,8 +121,8 @@ tasks:
123121
PROPS="
124122
enabled: true
125123
transportUri: {{.AEM_PUBLISH_HTTP_URL}}/bin/receive?sling:authRequestLogin=1
126-
transportUser: {{.AEM_PUBLISH_USER}}
127-
transportPassword: {{.AEM_PUBLISH_PASSWORD}}
124+
transportUser: {{.AEM_PUBLISH_USER}}
125+
transportPassword: {{.AEM_PUBLISH_PASSWORD}}
128126
userId: admin
129127
"
130128
echo "$PROPS" | sh aemw repl agent setup -A --location "author" --name "publish"

pkg/project/app_cloud/Taskfile.yml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -51,23 +51,21 @@ tasks:
5151
desc: start AEM instances and dispatcher
5252
aliases: [ up ]
5353
cmds:
54-
- task: aem:up
55-
- task: dispatcher:up
54+
- task: aem:start
55+
- task: dispatcher:start
5656

5757
stop:
5858
desc: stop AEM instances and dispatcher
5959
aliases: [ down ]
6060
cmds:
61-
- task: dispatcher:down
62-
- task: aem:down
61+
- task: dispatcher:stop
62+
- task: aem:stop
6363

6464
restart:
6565
desc: restart AEM instances and dispatcher
6666
cmds:
67-
- task: aem:down
68-
- task: aem:up
69-
- task: dispatcher:down
70-
- task: dispatcher:up
67+
- task: stop
68+
- task: start
7169

7270
destroy:
7371
desc: destroy AEM instances and dispatcher
@@ -107,7 +105,6 @@ tasks:
107105
desc: tail logs of AEM publish instance
108106
cmd: tail -f aem/home/var/instance/publish/crx-quickstart/logs/{stdout,error}.log
109107

110-
111108
aem:provision:
112109
desc: provision AEM instances by installing packages and applying configurations
113110
aliases: [ aem:configure ]
@@ -123,8 +120,8 @@ tasks:
123120
PROPS="
124121
enabled: true
125122
transportUri: {{.AEM_PUBLISH_HTTP_URL}}/bin/receive?sling:authRequestLogin=1
126-
transportUser: {{.AEM_PUBLISH_USER}}
127-
transportPassword: {{.AEM_PUBLISH_PASSWORD}}
123+
transportUser: {{.AEM_PUBLISH_USER}}
124+
transportPassword: {{.AEM_PUBLISH_PASSWORD}}
128125
userId: admin
129126
"
130127
echo "$PROPS" | sh aemw repl agent setup -A --location "author" --name "publish"

pkg/project/instance/Taskfile.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ tasks:
8888
PROPS="
8989
enabled: true
9090
transportUri: {{.AEM_PUBLISH_HTTP_URL}}/bin/receive?sling:authRequestLogin=1
91-
transportUser: {{.AEM_PUBLISH_USER}}
92-
transportPassword: {{.AEM_PUBLISH_PASSWORD}}
91+
transportUser: {{.AEM_PUBLISH_USER}}
92+
transportPassword: {{.AEM_PUBLISH_PASSWORD}}
9393
userId: admin
9494
"
9595
echo "$PROPS" | sh aemw repl agent setup -A --location "author" --name "publish"
@@ -105,9 +105,12 @@ tasks:
105105
author:check:
106106
desc: check health of AEM author instance
107107
cmds:
108+
- sleep 3
108109
- curl -s -u "{{.AEM_AUTHOR_USER}}:{{.AEM_AUTHOR_PASSWORD}}" "{{.AEM_AUTHOR_HTTP_URL}}/libs/granite/core/content/login.html" | grep -q "QUICKSTART_HOMEPAGE"
109110
- curl -s -u "{{.AEM_AUTHOR_USER}}:{{.AEM_AUTHOR_PASSWORD}}" "{{.AEM_AUTHOR_HTTP_URL}}/etc/replication/agents.author/publish.test.html" | grep -q "Replication (TEST) of /content successful"
110111

111112
publish:check:
112113
desc: check health of AEM publish instance
113-
cmd: curl -s -u "{{.AEM_PUBLISH_USER}}:{{.AEM_PUBLISH_PASSWORD}}" "{{.AEM_PUBLISH_HTTP_URL}}/libs/granite/core/content/login.html" | grep -q "QUICKSTART_HOMEPAGE"
114+
cmds:
115+
- sleep 3
116+
- curl -s -u "{{.AEM_PUBLISH_USER}}:{{.AEM_PUBLISH_PASSWORD}}" "{{.AEM_PUBLISH_HTTP_URL}}/libs/granite/core/content/login.html" | grep -q "QUICKSTART_HOMEPAGE"

0 commit comments

Comments
 (0)