Browse Source

remove obsolete scripts

tags/v1.1.1
Jonathan Cobb 4 years ago
parent
commit
8207113a11
4 changed files with 0 additions and 80 deletions
  1. +0
    -39
      bin/proxy
  2. +0
    -23
      scripts/create_user_and_network.json
  3. +0
    -1
      scripts/new_bubble.json
  4. +0
    -17
      scripts/proxy.json

+ 0
- 39
bin/proxy View File

@@ -1,39 +0,0 @@
#!/bin/bash
#
# Copyright (c) 2020 Bubble, Inc. All rights reserved. For personal (non-commercial) use, see license: https://getbubblenow.com/bubble-license/
#
#
# Request a URL via the reverse proxy
#
# Usage: proxy url outfile
#
# Environment variables
#
# BUBBLE_API : which API to use. Default is local (http://127.0.0.1:PORT, where PORT is found in .bubble.env)
# BUBBLE_USER : account to use. Default is root
# BUBBLE_PASS : password for account. Default is root
# BUBBLE_SCRIPTS : location of run.sh script. Default is to assume it is in the same directory containing this script
#
SCRIPT="${0}"
SCRIPT_DIR=$(cd $(dirname ${SCRIPT}) && pwd)
. ${SCRIPT_DIR}/bubble_common

URL="${1:?no URL provided}"
OUTFILE="${2:?no outfile provided}"
RAW=${3:-true}

if [[ "${URL}" =~ http:// ]] ; then
URL="http/$(echo -n ${URL} | cut -d/ -f3-)"
elif [[ "${URL}" =~ https:// ]] ; then
URL="https/$(echo -n ${URL} | cut -d/ -f3-)"
else
URL="http/$(echo -n ${URL} | cut -d/ -f3-)"
fi

PROXY_SCRIPT="${SCRIPT_DIR}/../scripts/proxy.json"
if [[ ! -f "${PROXY_SCRIPT}" ]] ; then
die "proxy API script not found: ${PROXY_SCRIPT}"
fi

echo '{"URL": "'"${URL}"'", "OUTFILE": "'"${OUTFILE}"'", "RAW": "'"${RAW}"'"}' \
| ${SCRIPT_DIR}/bscript ${PROXY_SCRIPT} --vars -

+ 0
- 23
scripts/create_user_and_network.json View File

@@ -1,23 +0,0 @@
[
{
"comment": "create new account and network",
"include": "new_bubble",
"params": {
"sageFqdn": "<<sageFqdn>>",
"username": "<<username>>",
"password": "<<password>>",
"email": "<<email>>",
"network": "<<network>>",
"rootUsername": "<<rootUsername>>",
"rootPassword": "<<rootPassword>>",
"domain": "<<domain>>",
"locale": "<<locale>>",
"lang": "<<lang>>",
"timezone": "<<timezone>>",
"plan": "<<plan>>",
"footprint": "<<footprint>>",
"compute": "<<compute>>",
"region": "<<region>>"
}
}
]

+ 0
- 1
scripts/new_bubble.json View File

@@ -1 +0,0 @@
../bubble-server/src/test/resources/models/include/new_bubble.json

+ 0
- 17
scripts/proxy.json View File

@@ -1,17 +0,0 @@
[
{
"comment": "declare default parameters for proxy script part",
"include": "_defaults",
"params": {
"URL": "<<<URL>>>",
"OUTFILE": "<<<OUTFILE>>>"
}
},

{
"comment": "try proxy to <<<URL>>>",
"request": { "uri": "p/<<<URL>>>" },
"response": { "raw": <<RAW>> },
"after": "save-download-to-file <<OUTFILE>>"
}
]

Loading…
Cancel
Save