Permalink
Browse files

Adding app domain handlers, bumping version for npm

  • Loading branch information...
1 parent c30e7d8 commit 93e842f57439b6430fe5b7181f45613200d3bbcb @DanBUK DanBUK committed Feb 3, 2011
Showing with 15 additions and 1 deletion.
  1. +14 −0 nodester.js
  2. +1 −1 package.json
View
@@ -124,4 +124,18 @@ nodester.prototype.appnpm_uninstall = function (name, package, cb) {
this.appnpm_handler(name, package, "uninstall", cb);
};
+nodester.prototype.appdomain_handler = function (name, domain, action, cb) {
+ request({uri: this.baseurl + "appdomains", method: 'POST', headers: headers, body: querystring.stringify({appname: name, action: action, domain: domain})}, function (err, resp, body) {
+ cb(JSON.parse(body));
+ });
+};
+
+nodester.prototype.appdomain_add = function (name, domain, cb) {
+ this.appdomain_handler(name, domain, "add", cb);
+};
+
+nodester.prototype.appdomain_delete = function (name, domain, cb) {
+ this.appdomain_handler(name, domain, "delete", cb);
+};
+
exports.nodester = nodester;
View
@@ -1,7 +1,7 @@
{
"name": "nodester-api",
"description": "A module to allow interaction with the http://nodester.com/ platform.",
- "version": "0.1.0",
+ "version": "0.1.2",
"homepage": "http://nodester.com/",
"repository": "git://github.com/nodester/nodester-api.git",
"author": "Daniel Bartlett <dan@f-box.org> (http://danb-uk.net/)",

0 comments on commit 93e842f

Please sign in to comment.