-
Notifications
You must be signed in to change notification settings - Fork 4
/
Tutorial07_ProductionLogging.sh
executable file
·66 lines (40 loc) · 1.59 KB
/
Tutorial07_ProductionLogging.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#!/bin/bash
set -e;
#
source ./scripts/manageShellVars.sh;
source ./scripts/util.sh
checkForVirtualMachine;
checkNotRoot;
export SUDOUSER=$(who am i | awk '{print $1}');
collectSectionNames;
setSection 7;
source "${BINDIR}/${SECTION}_functions.sh";
source ./scripts/explain.sh
RUN_RULE="";
explain ${BINDIR}/Introduction.md
RUN_RULE="";
explain ${BINDIR}/Observe_ordinary_console_logging.md # MANUAL_INPUT_REQUIRED
RUN_RULE="";
explain ${BINDIR}/Add_an_NPM_module_to_your_package.md # MANUAL_INPUT_REQUIRED
RUN_RULE="";
explain ${BINDIR}/Specify_Npm_modules.md # MANUAL_INPUT_REQUIRED
RUN_RULE="";
explain ${BINDIR}/Bunyan_Server_Side_OnlyLogging.md # MANUAL_INPUT_REQUIRED
RUN_RULE="";
explain ${BINDIR}/Add_Bunyan_Logging.md # MANUAL_INPUT_REQUIRED
RUN_RULE="";
explain ${BINDIR}/Goodbye_console.md # MANUAL_INPUT_REQUIRED
RUN_RULE="";
explain ${BINDIR}/Refactor_Bunyan_InstantiationA.md MORE_ACTION # CODE_BLOCK MANUAL_INPUT_REQUIRED
if [ "${RUN_RULE}" != "n" ]; then Refactor_Bunyan_InstantiationA; fi;
RUN_RULE="";
explain ${BINDIR}/Refactor_Bunyan_InstantiationB.md # MANUAL_INPUT_REQUIRED
RUN_RULE="";
explain ${BINDIR}/Refactor_Bunyan_InstantiationC.md MORE_ACTION # CODE_BLOCK
if [ "${RUN_RULE}" != "n" ]; then Refactor_Bunyan_InstantiationC; fi;
explain ${BINDIR}/Package_Upgrade_and_Project_Rebuild_A.md;
explain ${BINDIR}/Package_Upgrade_and_Project_Rebuild_B.md MORE_ACTION # CODE_BLOCK
if [ "${RUN_RULE}" != "n" ]; then Package_Upgrade_and_Project_Rebuild_B; fi;
## FLAG FOR INCLUSION IN SLIDES - ${BINDIR}/Fin.md explain
endOfSectionScript ${SECTION_NUM} ${SECTION} ${NEXT_SECTION};
exit 0;