module Kitchen::Driver

A driver is responsible for carrying out the lifecycle activities of an instance, such as creating and destroying an instance.

@author Fletcher Nichol <fnichol@nichol.ca>

Constants

DEFAULT_PLUGIN

Default driver plugin to use

Public Class Methods

for_plugin(plugin, config) click to toggle source

Returns an instance of a driver given a plugin type string.

@param plugin [String] a driver plugin type, which will be constantized @param config [Hash] a configuration hash to initialize the driver @return [Driver::Base] a driver instance @raise [ClientError] if a driver instance could not be created @raise [UserError] if the driver's dependencies could not be met

# File lib/kitchen/driver.rb, line 36
def self.for_plugin(plugin, config)
  Kitchen::Plugin.load(self, plugin, config)
end