summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authortv <tv@shackspace.de>2015-05-20 19:07:33 +0200
committertv <tv@shackspace.de>2015-05-20 19:07:33 +0200
commita145561ece1602b46258d59768f04b7fc3b2764d (patch)
tree4936054a9b239cbf11f5aa37f0722608cd526d49 /lib
parent3120446d3c28f800173493f750c99632d8329f20 (diff)
mv cac_listservers from infest to lib/cac.sh
Diffstat (limited to 'lib')
-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
+}