lib/vagrant-invade/action/validate.rb in vagrant-invade-0.4.8 vs lib/vagrant-invade/action/validate.rb in vagrant-invade-0.5.0

- old
+ new

@@ -21,21 +21,25 @@ ############################################################### # Validate the settings and set default variables if needed ############################################################### # INVADE - config['invade'] = Validator::Invade.new(env, config['invade']).validate + config['invade'] = Validator::Invade.new(config['invade']).validate + # Hostmanager Plugin + unless config['hostmanager'] == nil + config['hostmanager'] = Validator::HostManager.new( config['hostmanager']).validate + end + # Iterate over each machine configuration machines = config['machines'] unless machines == nil machines.each_with_index do |(machine, sections), index| # VM unless sections['vm'] == nil @env[:ui].info("\n[Invade] #{machine.upcase}: Validating VM section...") unless quiet - sections['vm'] = Validator::VM.new(env, sections['vm']).validate end # NETWORK unless sections['network'] == nil @@ -116,9 +120,10 @@ @env[:ui].info("\n[Invade] #{machine.upcase}: Validating SSH section...") unless quiet sections['ssh'] = Validator::SSH.new(env, sections['ssh']).validate end + # PLUGINS unless sections['plugin'] == nil @env[:ui].info("\n[Invade] #{machine.upcase}: Validating PLUGIN section...") unless quiet sections['plugin'].each do |type, plugin| @env[:ui].info(" Plugin: #{type}") unless quiet