Skip to content

Commit 0830d4b

Browse files
authored
More human readable generate_config
1 parent 4ed22aa commit 0830d4b

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

Hub/generate_config

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
#!/bin/bash
22

3-
echo "
3+
cat <<_EOF
44
{
5-
\"host\": null,
6-
\"port\": 4444,
7-
\"role\": \"hub\",
8-
\"maxSession\": $GRID_MAX_SESSION,
9-
\"newSessionWaitTimeout\": $GRID_NEW_SESSION_WAIT_TIMEOUT,
10-
\"capabilityMatcher\": \"org.openqa.grid.internal.utils.DefaultCapabilityMatcher\",
11-
\"throwOnCapabilityNotPresent\": $GRID_THROW_ON_CAPABILITY_NOT_PRESENT,
12-
\"jettyMaxThreads\": $GRID_JETTY_MAX_THREADS,
13-
\"cleanUpCycle\": $GRID_CLEAN_UP_CYCLE,
14-
\"browserTimeout\": $GRID_BROWSER_TIMEOUT,
15-
\"timeout\": $GRID_TIMEOUT,
16-
\"debug\": $GRID_DEBUG
17-
}"
5+
"host": null,
6+
"port": 4444,
7+
"role": "hub",
8+
"maxSession": $GRID_MAX_SESSION,
9+
"newSessionWaitTimeout": $GRID_NEW_SESSION_WAIT_TIMEOUT,
10+
"capabilityMatcher": "org.openqa.grid.internal.utils.DefaultCapabilityMatcher",
11+
"throwOnCapabilityNotPresent": $GRID_THROW_ON_CAPABILITY_NOT_PRESENT,
12+
"jettyMaxThreads": $GRID_JETTY_MAX_THREADS,
13+
"cleanUpCycle": $GRID_CLEAN_UP_CYCLE,
14+
"browserTimeout": $GRID_BROWSER_TIMEOUT,
15+
"timeout": $GRID_TIMEOUT,
16+
"debug": $GRID_DEBUG
17+
}
18+
_EOF

0 commit comments

Comments
 (0)