You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-09 00:22:08 +03:00
Remove snack_case and always use camelCase
This commit is contained in:
committed by
Ruben Bridgewater
parent
a86c998a64
commit
28afc33c9a
@@ -1,4 +1,4 @@
|
||||
// Spawned by the good_stacks.spec.js tests
|
||||
// Spawned by the goodStacks.spec.js tests
|
||||
'use strict';
|
||||
|
||||
var assert = require('assert');
|
||||
|
@@ -16,15 +16,15 @@ function once (cb) {
|
||||
};
|
||||
}
|
||||
|
||||
function StunnelProcess (conf_dir) {
|
||||
function StunnelProcess (confDir) {
|
||||
EventEmitter.call(this);
|
||||
|
||||
// set up an stunnel to redis; edit the conf file to include required absolute paths
|
||||
var conf_file = path.resolve(conf_dir, 'stunnel.conf');
|
||||
var conf_text = fs.readFileSync(conf_file + '.template').toString().replace(/__dirname/g, conf_dir);
|
||||
var confFile = path.resolve(confDir, 'stunnel.conf');
|
||||
var confText = fs.readFileSync(confFile + '.template').toString().replace(/__dirname,/g, confDir);
|
||||
|
||||
fs.writeFileSync(conf_file, conf_text);
|
||||
var stunnel = this.stunnel = spawn('stunnel', [conf_file]);
|
||||
fs.writeFileSync(confFile, confText);
|
||||
var stunnel = this.stunnel = spawn('stunnel', [confFile]);
|
||||
|
||||
// handle child process events, and failure to set up tunnel
|
||||
var self = this;
|
||||
@@ -68,9 +68,9 @@ StunnelProcess.prototype.stop = function (done) {
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
start: function (done, conf_dir) {
|
||||
start: function (done, confDir) {
|
||||
done = once(done);
|
||||
var stunnel = new StunnelProcess(conf_dir);
|
||||
var stunnel = new StunnelProcess(confDir);
|
||||
stunnel.once('error', done.bind(done));
|
||||
stunnel.once('started', done.bind(done, null, stunnel));
|
||||
},
|
||||
|
@@ -1,4 +1,4 @@
|
||||
// spawned by the unref tests in node_redis.spec.js.
|
||||
// spawned by the unref tests in nodeRedis.spec.js.
|
||||
// when configured, unref causes the client to exit
|
||||
// as soon as there are no outstanding commands.
|
||||
'use strict';
|
||||
|
Reference in New Issue
Block a user