-
Notifications
You must be signed in to change notification settings - Fork 0
/
ol-project.sh
32 lines (25 loc) · 1021 Bytes
/
ol-project.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash
read -p "Name (default: 'demo-ol-cics'):" name
name=${name:-demo-ol-cics}
echo "Name: $name"
echo "Create a module"
ol create module --connector mf-cics-cobol $name
cd $name
echo "Test connection to mainframe"
ol test connection --base-url http://mainframe.openlegacy.com --port 12344 --uri-map /ol/demos
echo "Add Assets to the module and test them"
echo "Add an Asset via a cobol source"
ol add --source-path ../resources/OACTCS9.cbl --program-path OACTCS9
cp ../resources/test-json/oactcs9.json
ol test asset oactcs9
echo "Add Assets via a cobol copy books"
ol add -i ../resources/GACTCS9I.cpy -o ../resources/GACTCS9O.cpy --program-path GACTCS9
cp ../resources/test-json/gactcs9.json
ol test asset gactcs9
ol add -i ../resources/LACTCS9I.cpy -o ../resources/LACTCS9O.cpy --program-path LACTCS9
# List does not require a change to the input
ol test asset lactcs9
echo "Push the Module to OpenLegacy Hub"
ol push module
echo "Create a Project with the Module"
ol create project $name --modules $name