Skip to content

Commit 0ccc45c

Browse files
author
Jonathan Major
committed
Merge pull request #55 from jonathan-major/master
SDK-162: added RAPTURE_HOME var.
2 parents 2144705 + f5d0a98 commit 0ccc45c

2 files changed

Lines changed: 10 additions & 8 deletions

File tree

Setup/rapture.bat

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
1-
@echo off
1+
@echo off
22
ECHO ***************************************************************
33
ECHO Starting Rapture Demo Client Environment Setup
44
SET "REFLEX_RUNNER_LATEST=https://github.com/RapturePlatform/Rapture/releases/latest"
55
SET "REFLEX_RUNNER_DOWNLOAD_PREFIX=https://github.com/RapturePlatform/Rapture/releases/download"
66
SET "RAPTURE_SETUP_DIR=%CD%"
7+
SET "RAPTURE_HOME=%CD%\.."
78

89
REM "*************************************************************"
910
REM get etienne credentials to setup env info
1011
SET "etienneurl=developer.incapture.net"
11-
SET /P user=Enter Etienne User:
12-
SET /P pass=Enter Etienne Password:
12+
SET /P user=Enter Incapture User:
13+
SET /P pass=Enter Incapture Password:
1314

1415
REM "*************************************************************"
1516
REM create a hashed password usin md5.exe
@@ -23,7 +24,7 @@ SET "LOGIN_URL=http://%etienneurl%:8080/login/login?user=%user%^&password=%hashp
2324
SET "SERVICE_URL=http://%etienneurl%:8080/curtisscript/getEnvInfo?username=%user%"
2425

2526
REM "*************************************************************"
26-
REM call login url to get cookie and then get the enn details
27+
REM call login url to get cookie and then get the enn details
2728
%CD%\tools\curl --silent --cookie-jar cookiefile.txt %LOGIN_URL% > nul 2>&1
2829
%CD%\tools\curl --silent --cookie cookiefile.txt %SERVICE_URL% > tmpenvinfo.txt
2930

Setup/rapture.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ HOST="http://developer.incapture.net:8080"
33
REFLEX_RUNNER_LATEST_HOST="https://github.com"
44
REFLEX_RUNNER_LATEST="$REFLEX_RUNNER_LATEST_HOST/RapturePlatform/Rapture/releases/latest"
55

6+
# write the export statements to a file to be sourced later
7+
env_var_filename=".rapture_client.$RANDOM.env"
8+
69
cur_dir=$(pwd)
710
pattern="(.*RaptureTutorials).*"
811
if [[ $cur_dir =~ $pattern ]]; then
@@ -111,8 +114,7 @@ if [ -z "$reflex_runner_path" ]; then
111114
fi
112115
fi
113116

114-
# write the export statements to a file to be sourced later
115-
env_var_filename=".rapture_client.$RANDOM.env"
117+
116118

117119
if [ -n "$reflex_runner_path" ] && [ !$reflex_runner_is_in_path ] ; then
118120
add_to_path=$(dirname $reflex_runner_path)
@@ -157,7 +159,7 @@ do
157159
done
158160

159161
echo "export RAPTURE_TUTORIAL_CSV=$csv_path" >> $env_var_filename
160-
162+
echo "export RAPTURE_HOME=$rapture_tutorials_dir" >> $env_var_filename
161163

162164

163165
# Also write a welcome banner to the file and change the prompt so it's easier for the user
@@ -183,4 +185,3 @@ screen -h 2000 -S Rapture sh -c "exec /bin/bash -init-file ./$env_var_filename"
183185

184186
# will execute after screen session exits
185187
rm $env_var_filename
186-

0 commit comments

Comments
 (0)