Class: RSpecSystem::NodeSet
- Inherits:
-
Object
- Object
- RSpecSystem::NodeSet
- Defined in:
- lib/rspec-system/node_set.rb
Overview
Factory class for NodeSet.
Defined Under Namespace
Classes: Base, Vagrant, Vsphere
Class Method Summary collapse
-
.create(setname, config, virtual_env, custom_prefabs_path, options) ⇒ RSpecSystem::NodeSet::Base
Returns a NodeSet object.
Class Method Details
.create(setname, config, virtual_env, custom_prefabs_path, options) ⇒ RSpecSystem::NodeSet::Base
Returns a NodeSet object.
8 9 10 11 12 13 14 15 |
# File 'lib/rspec-system/node_set.rb', line 8 def self.create(setname, config, virtual_env, custom_prefabs_path, ) begin require "rspec-system/node_set/#{virtual_env.downcase}" rescue LoadError => e raise "Unsupported virtual environment #{virtual_env}: #{e}" end const_get(virtual_env.capitalize).new(setname, config, custom_prefabs_path, ) end |