Module: RSpec::Puppet::Adapters

Defined in:
lib/rspec-puppet/adapters.rb

Defined Under Namespace

Classes: Base

Class Method Summary collapse

Class Method Details

.getObject



188
189
190
191
192
193
194
195
# File 'lib/rspec-puppet/adapters.rb', line 188

def self.get
  [
    ['7.11', Base]
  ].each do |(version, klass)|
    return klass.new if Puppet::Util::Package.versioncmp(Puppet.version, version) >= 0
  end
  raise "Puppet version #{Puppet.version} is not supported."
end