mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-02-06 23:14:58 +00:00
Create cloudflare.js
This commit is contained in:
parent
9f57b167b0
commit
8c7359f740
22
lib/cloudflare.js
Normal file
22
lib/cloudflare.js
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
////////////////////////////////////////////////////////////////////////
|
||||||
|
// Cloudflare API
|
||||||
|
////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
var SHELL = require("lib/shell");
|
||||||
|
|
||||||
|
exports.VERSIONINFO = "Cloudflare Lib (cloudflare.js) version 0.1";
|
||||||
|
exports.global = global;
|
||||||
|
exports.require = global.require;
|
||||||
|
|
||||||
|
exports.binPath = "bin/cloudflared";
|
||||||
|
|
||||||
|
// TODO: https://developers.cloudflare.com/access/rdp/rdp-guide/
|
||||||
|
|
||||||
|
exports.installService = function() {
|
||||||
|
var commandOptions = [];
|
||||||
|
commandOptions.push(binPath);
|
||||||
|
commandOptions.push("service");
|
||||||
|
commandOptions.push("install");
|
||||||
|
|
||||||
|
return SHELL.exec(commandOptions.join(' '));
|
||||||
|
};
|
Loading…
Reference in New Issue
Block a user