Comparing version 0.0.2 to 0.0.3
12
index.js
@@ -1,2 +0,2 @@ | ||
#!/usr/local/bin/node | ||
#!/usr/bin/env node | ||
@@ -16,2 +16,12 @@ var _ = require('lodash'); | ||
if (conf.help || conf.usage) { | ||
console.log( | ||
'-c command to execute on remote machine\n' + | ||
'-f read command from a file, works only if -c is not specified\n' + | ||
'-p ssh port, default is 22\n' + | ||
'-l username on remote machine, default is ec2-user\n' + | ||
'-i private key, default is /a_home_dir/.ssh/id_rsa)\n') | ||
return process.exit(0) | ||
} | ||
var command = (conf.c === undefined) ? fs.readFileSync(conf.f) : conf.c; | ||
@@ -18,0 +28,0 @@ |
{ | ||
"name": "exec-it", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Executes a command on a remote machine using ssh connection", | ||
@@ -8,8 +8,8 @@ "main": "index.js", | ||
"scripts": { | ||
"test": "mocha test/*.test.js" | ||
"test": "mocha" | ||
}, | ||
"author": "Roman Grudzinski", | ||
"author": "Roman Grudzinski, Yaniv Kessler", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/ironSource/remote-exec.git" | ||
"url": "https://github.com/ironSource/exec-it.git" | ||
}, | ||
@@ -16,0 +16,0 @@ "license": "ISC", |
@@ -1,2 +0,2 @@ | ||
# remote-exec2 | ||
# exec-it | ||
@@ -3,0 +3,0 @@ ## Install |
4428
118