You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 18, 2018. It is now read-only.
sed -i "s/ANALYSIS_KEY/$ANALYSIS/g" $register_file
sed -i "s/ANALYSIS_KEY/$ANALYSIS/g" $router_file
# loop through datasets, adding a view and registration entry for each
for dataset in ${!ANALYSES[$ANALYSIS]}; do
echo $dataset
funcname=$(echo $dataset | sed "s@-@@g" )
if [ $dataset = 'none' ]; then
dataset=''
endpoint=''
else
endpoint='/'$dataset
fi
# update register json
register_addition=$(echo $register_template | sed "s@_ENDPOINT@${endpoint}@g" | sed "s@ANALYSIS_KEY@${ANALYSIS}@g")
sed -i "s@}]@${register_addition}@" $register_file
# update router file
router_addition=$(echo $router_template | sed "s@DATASET@${dataset}@g" | sed "s@FUNCTION@${funcname}@g" | sed "s@_ENDPOINT@${endpoint}@g" | sed "s@ANALYSIS_KEY@${ANALYSIS}@g")