Sha256: 720bc2b2e42d3fefe8abc39b9aefa1cfe9ae1d31aa0079be43647b59f704e41d
Contents?: true
Size: 579 Bytes
Versions: 3
Compression:
Stored size: 579 Bytes
Contents
module RSpecSystem # Factory class for NodeSet. class NodeSet # Returns a NodeSet object. # # @return [RSpecSystem::NodeSet::Base] returns an object based on the Base # abstract class. def self.create(setname, config, virtual_env, custom_prefabs_path, options) 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, options) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rspec-system-2.5.1 | lib/rspec-system/node_set.rb |
rspec-system-2.5.0 | lib/rspec-system/node_set.rb |
rspec-system-2.4.0 | lib/rspec-system/node_set.rb |