summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2015-05-20 19:07:33 +0200
committertv <tv@krebsco.de>2015-05-20 19:07:33 +0200
commitc4c9bfe48a40867be32f1520ab79f4d089e48772 (patch)
tree4936054a9b239cbf11f5aa37f0722608cd526d49 /lib
parent5817d3d29e8fccd0482b60abff80af2b6ca48734 (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 0000000..209bb4d
--- /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
+}