lib/vagrant-windows-hyperv/monkey_patch/driver.rb
def find_vm_switch_name
        load_path = Pathname.new(File.expand_path("../scripts", __FILE__))
        script_path = load_path.join('find_vm_switch_name.ps1')
        execute(script_path, {vm_id: vm_id})
      end
# Override the existing import method to Override the import_vm.ps1 script
Override the existing import method to Override the import_vm.ps1 script
Override the existing import method to Override the import_vm . ps1 script
def find_vm_switch_name
        load_path = Pathname.new(File.expand_path("../scripts", __FILE__))
        script_path = load_path.join('find_vm_switch_name.ps1')
        execute(script_path, {vm_id: vm_id})
      end
def find_vm_switch_name load_path = Pathname . new ( File . expand_path ( "../scripts" , __FILE__ ) ) script_path = load_path . join ( 'find_vm_switch_name.ps1' ) execute ( script_path , { vm_id : vm_id } ) end
Override the existing import method to Override the import_vm.ps1 script
Override the existing import method to Override the import_vm . ps1 script