File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 1
1
var CoreObject = require ( 'core-object' ) ;
2
2
var chalk = require ( 'chalk' ) ;
3
- var blue = chalk . blue ;
3
+ var _ = require ( 'lodash-node' ) ;
4
4
5
5
var DeployPluginBase = CoreObject . extend ( {
6
6
context : null ,
@@ -55,23 +55,24 @@ var DeployPluginBase = CoreObject.extend({
55
55
} ,
56
56
57
57
log : function ( message , opts ) {
58
- opts = opts || { color : 'blue' } ;
59
- opts . color = opts . color || 'blue' ;
58
+ opts = opts || { } ;
60
59
var ui = this . ui ;
60
+ var color = opts . color || ui . logInfoColor || 'blue' ;
61
+ var chalkColor = chalk [ color ] ;
62
+
61
63
// the following accomodates a spelling error in ember-cli
62
64
var actualStream = ui . actualOutputStream || ui . actualOuputStream ;
63
65
64
66
if ( ! opts . verbose || ( opts . verbose && ui . verbose ) ) {
65
67
if ( ui . verbose ) {
66
- ui . write ( blue ( '| ' ) ) ;
68
+ ui . write ( chalkColor ( '| ' ) ) ;
67
69
} else if ( actualStream && actualStream . cursorTo ) {
68
70
// on a real terminal we want to reset the cursor position
69
71
// to avoid overlap with other outputs
70
72
actualStream . clearLine ( ) ;
71
73
actualStream . cursorTo ( 0 ) ;
72
74
}
73
75
74
- var chalkColor = chalk [ opts . color ] ;
75
76
this . logRaw ( chalkColor ( '- ' + message ) ) ;
76
77
}
77
78
}
Original file line number Diff line number Diff line change 8
8
},
9
9
"author" : " Luke Melia and ember-cli-deploy team" ,
10
10
"license" : " MIT" ,
11
- "devDependencies" : {
12
- },
11
+ "devDependencies" : {},
13
12
"dependencies" : {
14
13
"chalk" : " ^1.0.0" ,
15
- "core-object" : " 0.0.2"
14
+ "core-object" : " 0.0.2" ,
15
+ "lodash" : " ^4.6.1"
16
16
}
17
17
}
You can’t perform that action at this time.
0 commit comments