Sha256: 75ff01c6725041a742bc1c4805056a15ca69d4fbe0e81d0952d1d9f156781486
Contents?: true
Size: 750 Bytes
Versions: 24
Compression:
Stored size: 750 Bytes
Contents
module Vagrant module Action module General # Checks that virtualbox is installed and ready to be used. class CheckVirtualbox def initialize(app, env) @app = app end def call(env) # Certain actions may not actually have a VM, and thus no # driver, so we have to be clever about obtaining an instance # of the driver. driver = nil driver = env[:vm].driver if env[:vm] driver = Driver::VirtualBox.new(nil) if !driver # Verify that it is ready to go! This will raise an exception # if anything goes wrong. driver.verify! # Carry on. @app.call(env) end end end end end
Version data entries
24 entries across 24 versions & 6 rubygems