Class: RSpecSystem::NodeSet
- Inherits:
-
Object
- Object
- RSpecSystem::NodeSet
- Defined in:
- lib/rspec-system/node_set.rb
Overview
Factory class for NodeSet.
Defined Under Namespace
Class Method Summary collapse
-
.create(setname, config, virtual_env) ⇒ Object
Returns a NodeSet object.
Class Method Details
.create(setname, config, virtual_env) ⇒ Object
Returns a NodeSet object.
5 6 7 8 9 10 11 12 |
# File 'lib/rspec-system/node_set.rb', line 5 def self.create(setname, config, virtual_env) case(virtual_env) when 'vagrant' RSpecSystem::NodeSet::Vagrant.new(setname, config) else raise "Unsupported virtual environment #{virtual_env}" end end |