lib/vagrant-invade/action/create.rb in vagrant-invade-0.4.1 vs lib/vagrant-invade/action/create.rb in vagrant-invade-0.4.2

- old
+ new

@@ -25,11 +25,11 @@ else raise "[Invade]: No generated data found. Can't build Vagrantfile." end # Write new Vagrantfile if checksum is not equal - unless check_md5_checksum(@env[:ui], root_path, vagrantfile_name, generated_vagrantfile_data) + if !check_md5_checksum(@env[:ui], root_path, vagrantfile_name, generated_vagrantfile_data) || @env[:invade_build_force] @env[:invade_build_force] ? write_vagrantfile(@env[:ui], root_path, generated_vagrantfile_data, vagrantfile_name, true) : write_vagrantfile(@env[:ui], root_path, generated_vagrantfile_data, vagrantfile_name, false) end @@ -59,11 +59,11 @@ ui.warn "[Invade] Generated : '#{md5_new}'" return false end - ui.success "[Invade] Vagrantfile is still valid. Use '--f' to force replacing it." + ui.success "[Invade] Vagrantfile is still valid. Use '-f|--force' to force replacing it." unless @env[:invade_build_force] true end def reload(ui) @@ -91,11 +91,11 @@ open(vagrantfile_path, "w+") do |f| f.puts vagrantfile end overwrite ? - ui.warn('[Invade] Replaced old Vagrantfile.') : - ui.warn("[Invade] Saved new Vagrantfile at '#{root_path}/#{vagrantfile_name}.new'") + ui.warn("[Invade] Replaced Vagrantfile at '#{root_path}/#{vagrantfile_name}'.") : + ui.warn("[Invade] Saved new Vagrantfile at '#{root_path}/#{vagrantfile_name}.new'.") end end end end