Skip to content

Commit 389159b

Browse files
committed
Merge pull request #7 from ember-cli-deploy/use-wrong-spelling-for-output-stream
ember cli uses the wrong spelling from originalOutputStream
2 parents 6906957 + 55b872d commit 389159b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

index.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,17 @@ var DeployPluginBase = CoreObject.extend({
5252
opts = opts || { color: 'blue' };
5353
opts.color = opts.color || 'blue';
5454
var ui = this.ui;
55+
// the following accomodates a spelling error in ember-cli
56+
var actualStream = ui.actualOutputStream || ui.actualOuputStream;
5557

5658
if (!opts.verbose || (opts.verbose && ui.verbose)) {
5759
if (ui.verbose) {
5860
ui.write(blue('| '));
59-
} else if (ui.actualOutputStream && ui.actualOutputStream.cursorTo) {
61+
} else if (actualStream && actualStream.cursorTo) {
6062
// on a real terminal we want to reset the cursor position
6163
// to avoid overlap with other outputs
62-
ui.actualOuputStream.clearLine();
63-
ui.actualOutputStream.cursorTo(0);
64+
actualStream.clearLine();
65+
actualStream.cursorTo(0);
6466
}
6567

6668
var chalkColor = chalk[opts.color];

0 commit comments

Comments
 (0)