Skip to content
This repository was archived by the owner on Jan 23, 2021. It is now read-only.

Commit bd46e86

Browse files
Fantomas42Rob Wierzbowski
authored andcommitted
Close GH-97: Add option to set container/temp directory for multiple simultaneous streams. Fixes #87
1 parent e1453b3 commit bd46e86

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ module.exports = function (options) {
6969

7070
var stream = intermediate({
7171
output: relativeCompileDir,
72-
container: 'gulp-ruby-sass'
72+
container: options.container || 'gulp-ruby-sass'
7373
}, function (tempDir, cb, vinylFiles) {
7474

7575
// all paths passed to sass must have unix path separators
@@ -89,7 +89,7 @@ module.exports = function (options) {
8989
}
9090
});
9191

92-
var args = dargs(options, ['bundleExec', 'watch', 'poll', 'sourcemapPath']);
92+
var args = dargs(options, ['bundleExec', 'watch', 'poll', 'sourcemapPath', 'container']);
9393

9494
// temporary logging until gulp adds its own
9595
if (process.argv.indexOf('--verbose') !== -1) {

readme.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,14 @@ Default: `false`
176176
Run `sass` with [bundle exec](http://gembundler.com/man/bundle-exec.1.html): `bundle exec sass`.
177177

178178

179+
##### container
180+
181+
Type: `String`
182+
Default: `gulp-ruby-sass`
183+
184+
Name of the temporary directory used to process files. If you have multiple streams with gulp-ruby-sass running at once each will need a unique container name.
185+
186+
179187
## License
180188

181189
MIT © [Sindre Sorhus](http://sindresorhus.com)

0 commit comments

Comments
 (0)