module Kitchen::Driver
def self.for_plugin(plugin, config)
-
(UserError)- if the driver's dependencies could not be met -
(ClientError)- if a driver instance could not be created
Returns:
-
(Driver::Base)- a driver instance
Parameters:
-
config(Hash) -- a configuration hash to initialize the driver -
plugin(String) -- a driver plugin type, which will be constantized
def self.for_plugin(plugin, config) Kitchen::Plugin.load(self, plugin, config) end