vagrant/plugins/guests/windows/guest.rb

11 lines
256 B
Ruby
Raw Normal View History

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