@@ -4,7 +4,7 @@ var fs = require('fs');
44var path = require ( 'path' ) ;
55var mime = require ( 'mime' ) ;
66
7- var Promise = require ( 'ember-cli/lib/ext/promise ' ) ;
7+ var RSVP = require ( 'rsvp ' ) ;
88
99var _ = require ( 'lodash' ) ;
1010
@@ -97,10 +97,10 @@ module.exports = CoreObject.extend({
9797 return _ . difference ( filePaths , manifestEntries ) ;
9898 } ) . catch ( function ( /* reason */ ) {
9999 plugin . log ( "Manifest not found. Disabling differential deploy." , { color : 'yellow' , verbose : true } ) ;
100- return Promise . resolve ( filePaths ) ;
100+ return RSVP . resolve ( filePaths ) ;
101101 } ) ;
102102 } else {
103- return Promise . resolve ( filePaths ) ;
103+ return RSVP . resolve ( filePaths ) ;
104104 }
105105 } ,
106106
@@ -155,7 +155,7 @@ module.exports = CoreObject.extend({
155155 params . ContentEncoding = 'gzip' ;
156156 }
157157
158- return new Promise ( function ( resolve , reject ) {
158+ return new RSVP . Promise ( function ( resolve , reject ) {
159159 this . _client . putObject ( params , function ( error ) {
160160 if ( error ) {
161161 reject ( error ) ;
@@ -174,7 +174,7 @@ module.exports = CoreObject.extend({
174174 this . _currentEnd += currentBatch . length ;
175175
176176 //Execute our current batch of promises
177- return Promise . all ( currentBatch . map ( function ( filePath ) {
177+ return RSVP . all ( currentBatch . map ( function ( filePath ) {
178178 return this . _putObject ( filePath , options , filePaths ) ;
179179 } . bind ( this ) ) )
180180 //Then check if we need to execute another batch
@@ -193,7 +193,7 @@ module.exports = CoreObject.extend({
193193 return this . _putObjectsBatch ( filePaths , options ) ;
194194 }
195195
196- return Promise . all ( filePaths . map ( function ( filePath ) {
196+ return RSVP . all ( filePaths . map ( function ( filePath ) {
197197 return this . _putObject ( filePath , options , filePaths ) ;
198198 } . bind ( this ) ) ) ;
199199 }
0 commit comments