From 35efae8150efbb942e8128cc97ca43bd21354d45 Mon Sep 17 00:00:00 2001 From: Samim Mirhosseini Date: Mon, 15 Jan 2018 00:35:10 -0500 Subject: [PATCH] - changed dependency validation to just warnings - updating version to 0.2.2 --- src/lib/modules/validator.js | 9 ++++----- src/package.json | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/lib/modules/validator.js b/src/lib/modules/validator.js index 4c602351..16a74c4e 100644 --- a/src/lib/modules/validator.js +++ b/src/lib/modules/validator.js @@ -9,9 +9,6 @@ module.exports = function(dep) { return new Promise((resolve, reject)=>{ hasbin('vagrant', (hasVagrant)=>{ - if(!hasVagrant) - reject('Dependencies not found. Make sure you have installed VirtualBox and Vagrant.') - let hasVirtualBox = false; if(platform === 'darwin' || platform === 'linux'){ hasbin('virtualbox', (hasVB)=>{ @@ -34,8 +31,10 @@ module.exports = function(dep) { if(hasVirtualBox && hasVagrant) resolve(true); - else - reject('Dependencies not found. Make sure you have installed VirtualBox and Vagrant.') + else{ + console.log('=> Dependencies not found. Make sure you have installed VirtualBox and Vagrant.\n'); + resolve(true); + } }) }) } diff --git a/src/package.json b/src/package.json index 8170df6e..bc481269 100644 --- a/src/package.json +++ b/src/package.json @@ -1,6 +1,6 @@ { "name": "baker", - "version": "0.2.1", + "version": "0.2.2", "description": "baker creates ansible powered virtual machines", "engines": { "node": ">=7.10.0"