Sha256: 09a450f718b2457a550fd95dffce81fd9cddda673e6a54a1f74a1758a0729aa0
Contents?: true
Size: 1.1 KB
Versions: 10
Compression:
Stored size: 1.1 KB
Contents
module Vagrant class Action module VM # Middleware which verifies that the VM has the proper guest additions # installed and prints a warning if they're not detected or if the # version does not match the installed VirtualBox version. class CheckGuestAdditions include Util def initialize(app, env) @app = app end def call(env) # Use the raw interface for now, while the virtualbox gem # doesn't support guest properties (due to cross platform issues) version = env["vm"].vm.interface.get_guest_property_value("/VirtualBox/GuestAdd/Version") if version.empty? env.logger.error Translator.t(:vm_additions_not_detected) elsif version != VirtualBox.version env.logger.error Translator.t(:vm_additions_version_mismatch, :guest_additions_version => version, :virtualbox_version => VirtualBox.version) end # Continue @app.call(env) end end end end end
Version data entries
10 entries across 10 versions & 2 rubygems