Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge branch 'master' into error_handling

  • Loading branch information...
commit e082e0830dda76db7e2bd71268f1f90ede87e7de 2 parents b85da25 + 1210ae0
Isaac Wolkerstorfer authored February 06, 2011
20  nodester.js
@@ -128,6 +128,12 @@ nodester.prototype.app_info = function (name, cb) {
128 128
   this.get('app/' + name, cb);
129 129
 };
130 130
 
  131
+nodester.prototype.app_logs = function (name, cb) {
  132
+  request({uri: this.baseurl + "applogs/" + name, method: 'GET', headers: headers}, function (err, response, body) {
  133
+    cb(JSON.parse(body));
  134
+  });
  135
+};
  136
+
131 137
 nodester.prototype.appnpm_handler = function (name, package, action, cb) {
132 138
   this.post('appnpm', { appname: name, package: package, action: action }, cb);
133 139
 };
@@ -144,4 +150,18 @@ nodester.prototype.appnpm_uninstall = function (name, package, cb) {
144 150
   this.appnpm_handler(name, package, "uninstall", cb);
145 151
 };
146 152
 
  153
+nodester.prototype.appdomain_handler = function (name, domain, action, cb) {
  154
+  request({uri: this.baseurl + "appdomains", method: 'POST', headers: headers, body: querystring.stringify({appname: name, action: action, domain: domain})}, function (err, resp, body) {
  155
+    cb(JSON.parse(body));
  156
+  });
  157
+};
  158
+
  159
+nodester.prototype.appdomain_add = function (name, domain, cb) {
  160
+  this.appdomain_handler(name, domain, "add", cb);
  161
+};
  162
+
  163
+nodester.prototype.appdomain_delete = function (name, domain, cb) {
  164
+  this.appdomain_handler(name, domain, "delete", cb);
  165
+};
  166
+
147 167
 exports.nodester = nodester;
2  package.json
... ...
@@ -1,7 +1,7 @@
1 1
 {
2 2
   "name": "nodester-api",
3 3
   "description": "A module to allow interaction with the http://nodester.com/ platform.",
4  
-  "version": "0.1.0",
  4
+  "version": "0.1.3",
5 5
   "homepage": "http://nodester.com/",
6 6
   "repository": "git://github.com/nodester/nodester-api.git",
7 7
   "author": "Daniel Bartlett <dan@f-box.org> (http://danb-uk.net/)",

0 notes on commit e082e08

Please sign in to comment.
Something went wrong with that request. Please try again.