Sha256: 2c5278682590462f0d00ab8f02d37c682f45eab8f4f9504f0d9c118f3029652e
Contents?: true
Size: 529 Bytes
Versions: 3
Compression:
Stored size: 529 Bytes
Contents
module VagrantVbguest # A Vagrant middleware which checks the installed VirtualBox Guest # Additions to match the installed VirtualBox installation on the # host system. class Middleware def initialize(app, env, options = {}) @app = app @env = env @vm = env[:vm] end def call(env) options = @vm.config.vbguest.to_hash options[:auto_update] = true if options[:auto_update].nil? VagrantVbguest::Installer.new(@vm, options).run @app.call(env) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
vagrant-vbguest-0.2.0 | lib/vagrant-vbguest/middleware.rb |
vagrant-vbguest-0.1.1 | lib/vagrant-vbguest/middleware.rb |
vagrant-vbguest-0.1.0 | lib/vagrant-vbguest/middleware.rb |