Module: Puppet::Util
- Defined in:
- lib/rspec-puppet/monkey_patches.rb
Defined Under Namespace
Modules: Platform
Class Method Summary collapse
Class Method Details
.get_env(name, mode = default_env) ⇒ Object
150 151 152 153 154 155 156 157 |
# File 'lib/rspec-puppet/monkey_patches.rb', line 150 def get_env(name, mode = default_env) if RSpec::Puppet.rspec_puppet_example? # use the actual platform, not the pretended old_get_env(name, Platform.actual_platform) else old_get_env(name, mode) end end |
.old_get_env ⇒ Object
147 |
# File 'lib/rspec-puppet/monkey_patches.rb', line 147 alias :old_get_env :get_env |