grunt-iw-release
Advanced tools
Comparing version 0.2.2 to 0.3.0
{ | ||
"name": "grunt-iw-release", | ||
"version": "0.2.2", | ||
"version": "0.3.0", | ||
"description": "InsideWarehouse release/deploy flow", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -13,9 +13,11 @@ module.exports = function (grunt) { | ||
var keyFile = path.join(USER_HOME, ".ssh", (deploymentInfo.keyFileName || "id-rsa")); | ||
var privateKey; | ||
if (!fs.existsSync(keyFile)) { | ||
grunt.fail.fatal("Key file not found: " + keyFile); | ||
privateKey = ""; | ||
grunt.log.warn("Key file not found: " + keyFile); | ||
} else { | ||
privateKey = fs.readFileSync(keyFile).toString(); | ||
grunt.log.ok("Loaded key from", keyFile); | ||
} | ||
var privateKey = fs.readFileSync(keyFile).toString(); | ||
grunt.log.ok("Loaded key from", keyFile); | ||
grunt.verbose.writeln("Will deploy to " + deploymentInfo.username + "@" + deploymentInfo.host + deploymentInfo.path); | ||
@@ -22,0 +24,0 @@ |
8899
127