Module: VagrantPlugins::Parallels::Util::Common
- Defined in:
- lib/vagrant-parallels/util/common.rb
Class Method Summary collapse
-
.is_macvm(machine) ⇒ Object
Determines whether the VM’s box contains a macOS guest for an Apple Silicon host.
Class Method Details
.is_macvm(machine) ⇒ Object
Determines whether the VM’s box contains a macOS guest for an Apple Silicon host. In this case the image file ends with ‘.macvm’ instead of ‘.pvm’
8 9 10 |
# File 'lib/vagrant-parallels/util/common.rb', line 8 def self.is_macvm(machine) return !machine.box.nil? && !!Dir.glob(machine.box.directory.join('*.macvm')).first end |