lib/nodester/client.rb in nodester-0.0.1 vs lib/nodester/client.rb in nodester-0.0.2

- old
+ new

@@ -164,11 +164,13 @@ def env(appname,key) options={:body => {:appname => appname,:key=>key},:basic_auth => @auth} handle_result self.class.get('/env', options) end - def update_npm(action,package) - options={:body => {:action => action,:package=>package},:basic_auth => @auth} + # curl -X POST -u "mwawrusch:mw09543089" -d "appname=myappname&action=install&package=express" http://api.nodester.com/npm + + def update_npm(appname,action,package) + options={:body => {:appname => appname,:action => action,:package=>package},:basic_auth => @auth} handle_result self.class.post('/npm', options) end def create_appdomain(appname,domain)