lib/veewee/provider/vmfusion/provider.rb in veewee-0.4.1 vs lib/veewee/provider/vmfusion/provider.rb in veewee-0.4.2

- old
+ new

@@ -8,14 +8,13 @@ #include ::Veewee::Provider::Vmfusion::ProviderCommand def check_requirements require 'fission' - if File.exists?("/Library/Application Support/VMware Fusion/vmrun") - ::Fission.config.attributes["vmrun_bin"] = "/Library/Application Support/VMware Fusion/vmrun" - elsif File.exists?("/Applications/VMware Fusion.app/Contents/Library/vmrun") - ::Fission.config.attributes["vmrun_bin"] = "/Applications/VMware Fusion.app/Contents/Library/vmrun" - elsif + if + ::Fission.config.attributes["vmrun_bin"].nil? || + !File.exists?(::Fission.config.attributes["vmrun_bin"]) + then raise Veewee::Error,"Could not find vmrun at standard locations. Probably you don't have Vmware fusion installed" end env.logger.info("Found fusion version: #{fusion_version}") end