summaryrefslogtreecommitdiffstats
path: root/tasks/cdn.js
diff options
context:
space:
mode:
Diffstat (limited to 'tasks/cdn.js')
-rw-r--r--tasks/cdn.js12
1 files changed, 1 insertions, 11 deletions
diff --git a/tasks/cdn.js b/tasks/cdn.js
index 80771c8..9ff994a 100644
--- a/tasks/cdn.js
+++ b/tasks/cdn.js
@@ -69,17 +69,7 @@ gulp.task('deploy:cdn', ['upload:cdn'], function(done) {
if (permalink) {
var cmd = 'rm -f ' + args.cdnDestination + permalink + '; ln -s ' + version + ' ' + args.cdnDestination + permalink + '; ls -l ' + args.cdnDestination;
gutil.log('Deploying CDN : ssh ' + args.cdnUsername + '@' + host + ' ' + cmd);
- require('node-ssh-exec')({
- host: host,
- username: args.cdnUsername,
- privateKey: config.paths.privateKey()
- }, cmd, function (error, response) {
- if (error) {
- throw error;
- }
- gutil.log(response);
- done();
- });
+ common.ssh(args.cdnUsername, host, cmd, done);
} else {
done();
}