-
Notifications
You must be signed in to change notification settings - Fork 4
/
Tutorial02_VersionControlInTheCloud.sh
executable file
·72 lines (49 loc) · 2.22 KB
/
Tutorial02_VersionControlInTheCloud.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
66
67
68
69
70
71
#!/bin/bash
set -e;
#
source ./scripts/manageShellVars.sh;
source ./scripts/util.sh;
checkForVirtualMachine;
checkNotRoot;
export SUDOUSER=$(who am i | awk '{print $1}');
collectSectionNames;
setSection 2;
source "${BINDIR}/${SECTION}_functions.sh";
source ./scripts/explain.sh
RUN_RULE="";
explain ${BINDIR}/Introduction.md
explain ${BINDIR}/Set_Up_Project_Names.md MORE_ACTION # MANUAL_INPUT_REQUIRED
loadShellVars;
PARM_NAMES=("PARENT_DIR" "PROJECT_NAME" "MODULE_NAME" "YOUR_FULLNAME" \
"PACKAGE_DEVELOPER" "YOUR_EMAIL" "YOUR_UID" "GITHUB_ORGANIZATION_NAME"); # \
# "METEOR_UID" "METEOR_PWD" "KEYSTORE_PWD");
askUserForParameters PARM_NAMES[@];
# RUN_RULE="";
# if ! getUserData; then didNotGetUserData; fi;
explain ${BINDIR}/Configure_git_for_GitHub.md MORE_ACTION # CODE_BLOCK
if [ "${RUN_RULE}" != "n" ]; then Configure_git_for_GitHub; fi;
explain ${BINDIR}/Install_Meteor.md MORE_ACTION # CODE_BLOCK
if [ "${RUN_RULE}" != "n" ]; then Install_Meteor; fi;
explain ${BINDIR}/Create_Meteor_project.md MORE_ACTION # CODE_BLOCK
if [ "${RUN_RULE}" != "n" ]; then Create_Meteor_project; fi;
explain ${BINDIR}/Check_the_meteor_project_will_work.md MORE_ACTION # CODE_BLOCK
if [ "${RUN_RULE}" != "n" ]; then
export METEOR_PORT=3000
Check_the_meteor_project_will_work;
fi;
#export GITHUB_RAW="https://raw.githubusercontent.com/warehouseman/meteor-swagger-client/master/.eslintrc"
explain ${BINDIR}/Add_Meteor_application_development_support_files.md MORE_ACTION # CODE_BLOCK
if [ "${RUN_RULE}" != "n" ]; then
Add_Meteor_application_development_support_files;
fi;
explain ${BINDIR}/Create_GitHub_Repo_Deploy_Keys.md MORE_ACTION # CODE_BLOCK
if [ "${RUN_RULE}" != "n" ]; then Create_GitHub_Repo_Deploy_Keys ${PROJECT_NAME}; fi;
explain ${BINDIR}/Create_remote_GitHub_repository_A.md #
RUN_RULE="";
explain ${BINDIR}/Create_remote_GitHub_repository_B.md MORE_ACTION # CODE_BLOCK MANUAL_INPUT_REQUIRED
if [ "${RUN_RULE}" != "n" ]; then Create_remote_GitHub_repository_B; fi;
explain ${BINDIR}/Create_local_GitHub_repository.md MORE_ACTION # CODE_BLOCK
if [ "${RUN_RULE}" != "n" ]; then Create_local_GitHub_repository; fi;
## FLAG FOR INCLUSION IN SLIDES - ${BINDIR}/Fin.md explain
endOfSectionScript ${SECTION_NUM} ${SECTION} ${NEXT_SECTION};
exit 0;