mirror of
https://github.com/hashicorp/vagrant.git
synced 2026-06-09 00:32:06 -04:00
13 lines
325 B
Ruby
13 lines
325 B
Ruby
# Copyright (c) HashiCorp, Inc.
|
|
# SPDX-License-Identifier: BUSL-1.1
|
|
|
|
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
|