Comparing version 0.1.0 to 0.1.1
@@ -10,8 +10,5 @@ /** | ||
module.exports = function (environment, commit, callback) { | ||
if (typeof environment === 'string') { | ||
environment = deploytoolEnvironment.load(environment); | ||
} | ||
environment.applyDefaults({ | ||
type: '' | ||
environment = deploytoolEnvironment.initialize(environment, { | ||
type: '', | ||
branch: '' | ||
}); | ||
@@ -27,2 +24,8 @@ | ||
if (!config.branch) { | ||
callback(new Error('Branch is not defined')); | ||
return; | ||
} | ||
var module = 'deploytool-' + config.type; | ||
@@ -29,0 +32,0 @@ |
@@ -19,2 +19,16 @@ /** | ||
DeployToolEnvironment.initialize = function (idOrEnv, defaults) { | ||
var environment = idOrEnv; | ||
if (typeof environment === 'string') { | ||
environment = DeployToolEnvironment.load(environment); | ||
} | ||
if (defaults) { | ||
environment.applyDefaults(defaults); | ||
} | ||
return environment; | ||
}; | ||
DeployToolEnvironment.load = function(id, configFile, defaults, configDir) { | ||
@@ -21,0 +35,0 @@ configDir = configDir || __dirname; |
{ | ||
"name": "deploytool", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "A Node tool for deploying things like code to places like remote servers and services", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
7021
154