From 305c0660b14836e8f0e2af32b22811bdf46d8b2d Mon Sep 17 00:00:00 2001 From: Steve Jabour Date: Thu, 16 Mar 2017 18:47:23 -0600 Subject: [PATCH] Fix `ember-cli/ext/promise` Deprecation for Ember CLI >=2.12.0 This resolves the deprecation warning: ``` DEPRECATION: `ember-cli/ext/promise` is deprecated, use `rsvp` instead... ``` --- index.js | 2 +- lib/ssh-client.js | 4 ++-- package.json | 3 ++- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index ac6aac4..2fe9904 100644 --- a/index.js +++ b/index.js @@ -1,7 +1,7 @@ /* jshint node: true */ 'use strict'; -var Promise = require('ember-cli/lib/ext/promise'); +var Promise = require('rsvp').Promise; var DeployPluginBase = require('ember-cli-deploy-plugin'); var path = require('path'); var os = require('os'); diff --git a/lib/ssh-client.js b/lib/ssh-client.js index 602fe40..20c6952 100644 --- a/lib/ssh-client.js +++ b/lib/ssh-client.js @@ -2,7 +2,7 @@ 'use strict'; var CoreObject = require('core-object'); -var Promise = require('ember-cli/lib/ext/promise'); +var Promise = require('rsvp').Promise; var SSH2Client = require('ssh2').Client; var fs = require('fs'); var untildify = require('untildify'); @@ -131,4 +131,4 @@ module.exports = CoreObject.extend({ ); }); } -}); \ No newline at end of file +}); diff --git a/package.json b/package.json index 9925bf1..ef5afb9 100644 --- a/package.json +++ b/package.json @@ -22,9 +22,10 @@ "core-object": "^1.1.0", "ember-cli-deploy-plugin": "^0.2.9", "lodash": "^3.10.1", - "untildify": "^2.1.0", "node-fs": "^0.1.7", + "rsvp": "^3.5.0", "ssh2": "^0.5.0", + "untildify": "^2.1.0", "username": "^1.0.1" }, "devDependencies": {