Permalink
Browse files

fixed #11 added --fast-fail-regeps

  • Loading branch information...
1 parent a6d131f commit 5d1682c0ab63b43e7a2d3522214809ef0f7e10c6 @aearly aearly committed Sep 6, 2013
Showing with 12 additions and 2 deletions.
  1. +2 −0 .gitignore
  2. +3 −2 README.md
  3. +7 −0 lib/sauce-connect-launcher.js
View
@@ -2,6 +2,8 @@
.tags
lib/*
^lib/sauce-connect-launcher.js
+lib-cov/
+test/coverage.html
sauce_connect.log
node_modules/
npm-debug.log
View
@@ -22,8 +22,9 @@ var sauceConnectLauncher = require('sauce-connect-launcher'),
verbose: false,
logfile: null, //optionally change sauce connect logfile location
tunnelIdentifier: null, // optionally identity the tunnel for concurrent tunnels
- logger: console.log,
- no_progress: false // optionally hide progress bar
+ fastFailRexegps: null, // an array or comma-separated list of regexes whose matches will not go through the tunnel
+ directDomains: null, // an array or comma-separated list of domains that will not go through the tunnel
+ logger: console.log
};
sauceConnectLauncher(options, function (err, sauceConnectProcess) {
@@ -145,6 +145,13 @@ function run(options, callback) {
args.push("--direct-domains", options.directDomains);
}
+ if (options.fastFailRegexps) {
+ if (_.isArray(options.directDomains)) {
+ options.directDomains = options.directDomains.join(",");
+ }
+ args.push("--fast-fail-regexps", options.fastFailRegexps);
+ }
+
if (options.logfile) {
args.push("-l", options.logfile);
}

0 comments on commit 5d1682c

Please sign in to comment.