Skip to content

Commit 72243a2

Browse files
committed
Merge pull request #19 from ember-cli-deploy/verbose-support
Update to use new verbose option for logging
2 parents f3aa182 + 59e083a commit 72243a2

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,11 @@ module.exports = {
6363
manifestPath: manifestPath
6464
};
6565

66-
this.log('preparing to upload to S3 bucket `' + bucket + '`');
66+
this.log('preparing to upload to S3 bucket `' + bucket + '`', { verbose: true });
6767

6868
return s3.upload(options)
6969
.then(function(filesUploaded){
70-
self.log('uploaded ' + filesUploaded.length + ' files ok');
70+
self.log('uploaded ' + filesUploaded.length + ' files ok', { verbose: true });
7171
return { filesUploaded: filesUploaded };
7272
})
7373
.catch(this._errorMessage.bind(this));

lib/s3.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ module.exports = CoreObject.extend({
3838
var manifestPath = options.manifestPath;
3939
if (manifestPath) {
4040
var key = path.join(prefix, manifestPath);
41-
plugin.log('Downloading manifest for differential deploy from `' + key + '`...');
41+
plugin.log('Downloading manifest for differential deploy from `' + key + '`...', { verbose: true });
4242
return new Promise(function(resolve, reject){
4343
var params = { Bucket: options.bucket, Key: key};
4444
this._client.getObject(params, function(error, data) {
@@ -49,10 +49,10 @@ module.exports = CoreObject.extend({
4949
}
5050
}.bind(this));
5151
}.bind(this)).then(function(manifestEntries){
52-
plugin.log("Manifest found. Differential deploy will be applied.");
52+
plugin.log("Manifest found. Differential deploy will be applied.", { verbose: true });
5353
return _.difference(filePaths, manifestEntries);
54-
}).catch(function(reason){
55-
plugin.log("Manifest not found. Disabling differential deploy.", { color: 'yellow' });
54+
}).catch(function(/* reason */){
55+
plugin.log("Manifest not found. Disabling differential deploy.", { color: 'yellow', verbose: true });
5656
return Promise.resolve(filePaths);
5757
});
5858
} else {
@@ -107,7 +107,7 @@ module.exports = CoreObject.extend({
107107
if (error) {
108108
reject(error);
109109
} else {
110-
plugin.log('✔ ' + key);
110+
plugin.log('✔ ' + key, { verbose: true });
111111
resolve(filePath);
112112
}
113113
});

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"aws-sdk": "^2.1.25",
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
"lodash": "^3.9.3",
5353
"mime": "^1.3.4",

tests/unit/index-nodetest.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ describe('s3 plugin', function() {
1414

1515
beforeEach(function() {
1616
mockUi = {
17+
verbose: true,
1718
messages: [],
1819
write: function() {},
1920
writeLine: function(message) {

0 commit comments

Comments
 (0)