Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

added the changes lost between 0.2.19 & 0.2.20 ... updated the version to 0.2.21 #26

Merged
merged 1 commit into from

2 participants

कारतोफ्फेलस्क्रिप्ट™ Eric Schoffstall
कारतोफ्फेलस्क्रिप्ट™

added the changes lost between 0.2.19 & 0.2.20 ... updated the version to 0.2.21

git history shows last version as 0.2.16 before 0.2.20, but npm has
0.2.17-0.2.20 . something went wrong somewhere & "npm list" went
missing … merged the code from npm repo, listing modules is back again

कारतोफ्फेलस्क्रिप्ट™ netroy added the changes lost between 0.2.19 & 0.2.20 ... updated the versio…
…n to 0.2.21

git history shows last version as 0.2.16 before 0.2.20, but npm has
0.2.17-0.2.20 .  something went wrong somewhere & "npm list" went
missing …  merged the code from npm repo, listing modules is back again
6a42146
Eric Schoffstall

Strange, somebody (most likely me) must have pushed up the wrong code or something. Thanks for keeping an eye on it

Eric Schoffstall contra merged commit 10fc3b2 into from
कारतोफ्फेलस्क्रिप्ट™

i dont think it was ur fault ... the versions from 0.2.17 to 0.2.19 are missing ... apparently it got pushed to npm but not github ... anyways ... Cheers :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Aug 23, 2011
  1. कारतोफ्फेलस्क्रिप्ट™

    added the changes lost between 0.2.19 & 0.2.20 ... updated the versio…

    netroy authored
    …n to 0.2.21
    
    git history shows last version as 0.2.16 before 0.2.20, but npm has
    0.2.17-0.2.20 .  something went wrong somewhere & "npm list" went
    missing …  merged the code from npm repo, listing modules is back again
This page is out of date. Refresh to see the latest.
Showing with 43 additions and 3 deletions.
  1. +4 −0 bin/nodester.js
  2. +38 −2 lib/npm.js
  3. +1 −1  package.json
4 bin/nodester.js
View
@@ -1,5 +1,9 @@
#!/usr/bin/env node
+process.nodester = {
+ brand: 'nodester',
+ apihost: 'api.nodester.com'
+}
var cli = require('nodester-cli'),
command = process.argv[0],
40 lib/npm.js
View
@@ -6,6 +6,7 @@ var node = require('nodester-api').nodester,
module.exports = {
usage: function() {
log.usage('All arguments after install|update|uninstall will be sent to npm as packages.');
+ log.usage('npm list - Lists the installed npm packages for this app.');
log.usage('npm install <packages> - Installs the list of specified packages to this app.');
log.usage('npm update <packages> - Update the list of specified packages to this app.');
log.usage('npm uninstall <packages> - Removes the list of specified packages to this app.');
@@ -55,6 +56,37 @@ module.exports = {
log.warn('you should restart your app after you are finished installing packages.'.yellow.bold);
});
},
+ list: function(args) {
+ config.check();
+ var appname = config.appname;
+ if (args.length && !appname) {
+ appname = args[0];
+ }
+ log.info('list npm packages for app:', appname);
+ var nodeapi = new node(config.username, config.password, config.apihost, config.apisecure);
+ nodeapi.appnpm_list(appname, function (err, data) {
+ if (err) {
+ log.error(err.message);
+ }
+ if (data.output) {
+ var out = data.output.split('\n');
+ out.forEach(function(l) {
+ if (l.indexOf('stdout: ') === -1) {
+ if (l.length > 1) {
+ l = l.replace('stderr: ', '');
+ l = l.split(' ');
+ l[0] = l[0].magenta;
+ if (l[1]) {
+ l[1] = l[1].white;
+ }
+ log.usage(l.join(' '));
+ }
+ }
+ });
+ }
+ log.plain('');
+ });
+ },
update: function(args) {
config.check();
var appname = config.appname,
@@ -82,7 +114,9 @@ module.exports = {
l = l.replace('stderr: ', '');
l = l.split(' ');
l[0] = l[0].magenta;
- l[1] = l[1].white;
+ if (l[1]) {
+ l[1] = l[1].white;
+ }
log.usage(l.join(' '));
}
}
@@ -119,7 +153,9 @@ module.exports = {
l = l.replace('stderr: ', '');
l = l.split(' ');
l[0] = l[0].magenta;
- l[1] = l[1].white;
+ if (l[1]) {
+ l[1] = l[1].white;
+ }
log.usage(l.join(' '));
}
}
2  package.json
View
@@ -1,7 +1,7 @@
{
"name": "nodester-cli",
"description": "A CLI tool to allow interaction with the http://nodester.com/ platform.",
- "version": "0.2.20",
+ "version": "0.2.21",
"homepage": "http://nodester.com/",
"repository": "git://github.com/nodester/nodester-cli.git",
"author": "Daniel Bartlett <dan@f-box.org> (http://danb-uk.net/)",
Something went wrong with that request. Please try again.