Skip to content

Commit

Permalink
Plugins condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Fran Rodriguez committed Feb 20, 2016
1 parent 8be370a commit 6e4831d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
unless Vagrant.has_plugin?("vagrant-vbguest")
raise 'Vbguest plugin is not installed!'
end

unless Vagrant.has_plugin?("vagrant-hosts")
raise 'Hosts plugin is not installed!'
end

nodes_config = (JSON.parse(File.read("nodes.json")))['nodes']
id_rsa_ssh_key_pub = File.read(File.join(Dir.home, ".ssh", "id_rsa.pub"))
Vagrant.configure(2) do |config|
Expand Down

0 comments on commit 6e4831d

Please sign in to comment.