summaryrefslogtreecommitdiffstats
path: root/lib/cac.sh
diff options
context:
space:
mode:
Diffstat (limited to 'lib/cac.sh')
-rw-r--r--lib/cac.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/cac.sh b/lib/cac.sh
new file mode 100644
index 000000000..209bb4d66
--- /dev/null
+++ b/lib/cac.sh
@@ -0,0 +1,9 @@
+cac_listservers() {
+ if test -z "${cac_via-}"; then
+ curl -fsS \
+ "https://panel.cloudatcost.com/api/v1/listservers.php?key=$cac_key\&login=$cac_login"
+ else
+ ssh -q $cac_via -t curl -fsS \
+ "https://panel.cloudatcost.com/api/v1/listservers.php?key=$cac_key\\&login=$cac_login"
+ fi
+}