Module: RSpec::Puppet::Support
- Included in:
- ClassExampleGroup, DefineExampleGroup, HostExampleGroup
- Defined in:
- lib/rspec-puppet/support.rb
Constant Summary collapse
- @@cache =
{}
Instance Method Summary collapse
Instance Method Details
#build_catalog(*args) ⇒ Object
27 28 29 |
# File 'lib/rspec-puppet/support.rb', line 27 def build_catalog *args @@cache[args] ||= self.build_catalog_without_cache(*args) end |
#munge_facts(facts) ⇒ Object
31 32 33 34 35 |
# File 'lib/rspec-puppet/support.rb', line 31 def munge_facts(facts) output = {} facts.keys.each { |key| output[key.to_s] = facts[key] } output end |