Skip to content

Commit

Permalink
- changed dependency validation to just warnings
Browse files Browse the repository at this point in the history
- updating version to 0.2.2
  • Loading branch information
ssmirr committed Jan 15, 2018
1 parent a8be47a commit 35efae8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions src/lib/modules/validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)=>{
Expand All @@ -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);
}
})
})
}
Expand Down
2 changes: 1 addition & 1 deletion src/package.json
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit 35efae8

Please sign in to comment.