vagrant/plugins/guests/windows/guest.rb

11 lines
256 B
Ruby

module VagrantPlugins
module GuestWindows
class Guest < Vagrant.plugin("2", :guest)
def detect?(machine)
# See if the Windows directory is present.
machine.communicate.test("test -d $Env:SystemRoot")
end
end
end
end