class HashiCorp::VagrantVMwareDesktop::Action::CheckVMware
This class checks to verify that VMware is properly installed and configured in such a way that Vagrant can use it.
Public Class Methods
new(app, env)
click to toggle source
# File lib/vagrant-vmware-desktop/action/check_vmware.rb, line 9 def initialize(app, env) @app = app end
Public Instance Methods
call(env)
click to toggle source
# File lib/vagrant-vmware-desktop/action/check_vmware.rb, line 13 def call(env) if !env[:check_vmware_complete] # Tell the provider to verify itself. env[:machine].provider.driver.verify! # Mark that we completed it so we only do that once env[:check_vmware_complete] = true end # Carry on @app.call(env) end