summaryrefslogtreecommitdiffstats
path: root/index.js
diff options
context:
space:
mode:
authorJan Tuomi <jan-sebastian.tuomi@aalto.fi>2016-08-14 12:54:54 +0300
committerJan Tuomi <jan-sebastian.tuomi@aalto.fi>2016-08-14 12:54:54 +0300
commit17a154cb51a729e043ce555e68ef9ebbe40f14b5 (patch)
tree52cd115ab1cc68b899d57e4a35eaa9adf0b84a36 /index.js
parent766fbef3946d205cce4d61d8a5cd14adf078e5b1 (diff)
Add statuscake module
Diffstat (limited to 'index.js')
-rw-r--r--index.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/index.js b/index.js
new file mode 100644
index 0000000..db229d3
--- /dev/null
+++ b/index.js
@@ -0,0 +1,20 @@
+var statuscake = require("statuscake");
+
+var args = process.argv.slice(2);
+if (args.length != 2) {
+ console.log("Please provide user and key as positional arguments.");
+ process.exit(1);
+}
+
+var username = args[0];
+var password = args[1];
+
+statuscake
+ .username(username)
+ .key(password);
+
+function allTests(err, data) {
+ console.log(data);
+}
+
+statuscake.tests(allTests);