deploytool-ssh-checkout
Advanced tools
Comparing version 0.1.0 to 0.1.1
15
index.js
@@ -10,19 +10,16 @@ /** | ||
deploy: function(environment, commit, callback) { | ||
if (typeof environment === 'string') { | ||
environment = deploytool.environment.load(environment); | ||
} | ||
environment.applyDefaults({ | ||
deploytool.environment.initialize(environment, { | ||
type: 'ssh-checkout', | ||
remoteBranch: '', | ||
remote: 'origin', | ||
remoteDir: '', | ||
remotePath: '', | ||
commands: [] | ||
}); | ||
var config = environment.config; | ||
environment.config.remoteBranch = environment.config.remoteBranch || environment.config.branch | ||
config.remoteBranch = config.remoteBranch || config.branch; | ||
if (!config.remoteDir) { | ||
callback(new Error('remoteDir must be specified')); | ||
if (!config.remotePath) { | ||
callback(new Error('remotePath must be specified')); | ||
@@ -29,0 +26,0 @@ return; |
{ | ||
"name": "deploytool-ssh-checkout", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "A Deploytool deployment type for running git checkout on a remote server", | ||
@@ -27,4 +27,4 @@ "license": "MIT", | ||
"async": "^2.0.0-rc.6", | ||
"deploytool": "^0.1.0", | ||
"deploytool-ssh": "^0.1.1" | ||
"deploytool": "^0.1.1", | ||
"deploytool-ssh": "^0.1.2" | ||
}, | ||
@@ -31,0 +31,0 @@ "devDependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3284
28
Updateddeploytool@^0.1.1
Updateddeploytool-ssh@^0.1.2