Skip to content

Commit 62a3b45

Browse files
committed
Merge pull request #39 from ember-cli-deploy/verbose-support
Update to use new verbose option for logging
2 parents 166164c + ba426d7 commit 62a3b45

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,14 @@ module.exports = {
4848
}
4949
},
5050
configure: function(/* context */) {
51-
this.log('validating config');
51+
this.log('validating config', { verbose: true });
5252

5353
if (!this.pluginConfig.url) {
5454
['host', 'port'].forEach(this.applyDefaultConfigProperty.bind(this));
5555
}
5656
['filePattern', 'distDir', 'keyPrefix', 'revisionKey', 'didDeployMessage', 'redisDeployClient'].forEach(this.applyDefaultConfigProperty.bind(this));
5757

58-
this.log('config ok');
58+
this.log('config ok', { verbose: true });
5959
},
6060

6161
upload: function(/* context */) {
@@ -66,7 +66,7 @@ module.exports = {
6666
var keyPrefix = this.readConfig('keyPrefix');
6767
var filePath = path.join(distDir, filePattern);
6868

69-
this.log('Uploading `' + filePath + '`');
69+
this.log('Uploading `' + filePath + '`', { verbose: true });
7070
return this._readFileContents(filePath)
7171
.then(redisDeployClient.upload.bind(redisDeployClient, keyPrefix, revisionKey))
7272
.then(this._uploadSuccessMessage.bind(this))
@@ -81,7 +81,7 @@ module.exports = {
8181
var revisionKey = this.readConfig('revisionKey');
8282
var keyPrefix = this.readConfig('keyPrefix');
8383

84-
this.log('Activating revision `' + revisionKey + '`');
84+
this.log('Activating revision `' + revisionKey + '`', { verbose: true });
8585
return Promise.resolve(redisDeployClient.activate(keyPrefix, revisionKey))
8686
.then(this.log.bind(this, '✔ Activated revision `' + revisionKey + '`', {}))
8787
.then(function(){
@@ -121,7 +121,7 @@ module.exports = {
121121
},
122122

123123
_uploadSuccessMessage: function(key) {
124-
this.log('Uploaded with key `' + key + '`');
124+
this.log('Uploaded with key `' + key + '`', { verbose: true });
125125
return Promise.resolve(key);
126126
},
127127

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"dependencies": {
4848
"chalk": "^1.0.0",
4949
"core-object": "^1.1.0",
50-
"ember-cli-deploy-plugin": "0.1.3",
50+
"ember-cli-deploy-plugin": "0.2.0",
5151
"ember-cli-babel": "^5.0.0",
5252
"redis": "^0.12.1",
5353
"rsvp": "^3.0.18",

tests/unit/index-nodetest.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ describe('redis plugin', function() {
1616
beforeEach(function() {
1717
subject = require('../../index');
1818
mockUi = {
19+
verbose: true,
1920
messages: [],
2021
write: function() { },
2122
writeLine: function(message) {

0 commit comments

Comments
 (0)