Permalink
Browse files

axed ugly jslint single var definitions

  • Loading branch information...
1 parent d22e0c8 commit 67f3f0504de7f4147ba327b08218fc3a73087c61 @inolen committed Feb 18, 2012
Showing with 18 additions and 18 deletions.
  1. +14 −14 lib/rex.js
  2. +3 −3 lib/sshfsclient.js
  3. 0 src/{rex.cpp → rex.cc}
  4. +1 −1 wscript
View
@@ -25,18 +25,18 @@ var rex = (function () {
* about the localhost for them to connect back to via sshfs.
*/
api.relay = function (command, proc_connection_string, tunnel_port, callback) {
- var fs_connection_string = process.env.USERNAME + '@localhost:' + tunnel_port,
- file_cinfo = new ConnectionInfo(fs_connection_string),
- proc_cinfo = new ConnectionInfo(proc_connection_string),
- file = 'ssh',
- args = [
- '-R', file_cinfo.port + ':' + file_cinfo.hostname + ':22',
- '-o', 'PasswordAuthentication=no',
- '-o', 'StrictHostKeyChecking=no',
- '-o', 'UserKnownHostsFile=/dev/null',
- proc_cinfo.username + '@' + proc_cinfo.hostname,
- 'sudo rex "--file_host=' + fs_connection_string + '" "--command=' + command + '"'
- ];
+ var fs_connection_string = process.env.USERNAME + '@localhost:' + tunnel_port;
+ var file_cinfo = new ConnectionInfo(fs_connection_string);
+ var proc_cinfo = new ConnectionInfo(proc_connection_string);
+ var file = 'ssh';
+ var args = [
+ '-R', file_cinfo.port + ':' + file_cinfo.hostname + ':22',
+ '-o', 'PasswordAuthentication=no',
+ '-o', 'StrictHostKeyChecking=no',
+ '-o', 'UserKnownHostsFile=/dev/null',
+ proc_cinfo.username + '@' + proc_cinfo.hostname,
+ 'sudo rex "--file_host=' + fs_connection_string + '" "--command=' + command + '"'
+ ];
console.log('Forwarding "%s" to "%s" via SSH', command, proc_connection_string);
@@ -56,8 +56,8 @@ var rex = (function () {
* remote file system from the machine that sent this to us.
*/
api.execFile = function (file, args, options, fs_connection_string, callback) {
- var cinfo = new ConnectionInfo(fs_connection_string),
- mountpoint;
+ var cinfo = new ConnectionInfo(fs_connection_string);
+ var mountpoint;
console.log('Executing "%s %s" using "%s" as the file system root', file, args ? args.join(' ') : '', fs_connection_string);
View
@@ -13,9 +13,9 @@ var SSHFSClient = (function () {
'-o', 'UserKnownHostsFile=/dev/null'];
itself.mount = function (connection_string, mountpoint, callback) {
- var cinfo = new ConnectionInfo(connection_string),
- mountsource = cinfo.username + '@' + cinfo.hostname + ':/',
- args = [mountsource, mountpoint].concat(defaultOptions);
+ var cinfo = new ConnectionInfo(connection_string);
+ var mountsource = cinfo.username + '@' + cinfo.hostname + ':/';
+ var args = [mountsource, mountpoint].concat(defaultOptions);
// add port if specified
if (cinfo.port !== undefined) {
File renamed without changes.
View
@@ -9,4 +9,4 @@ def build(bld):
obj = bld.new_task_gen("cxx", "shlib", "node_addon")
obj.cxxflags = ["-g", "-D_FILE_OFFSET_BITS=64", "-D_LARGEFILE_SOURCE", "-Wall"]
obj.target = "librex"
- obj.source = "./src/rex.cpp"
+ obj.source = "./src/rex.cc"

0 comments on commit 67f3f05

Please sign in to comment.