module Puppet::Util
Public Instance Methods
default_env()
click to toggle source
# File lib/rspec-puppet/monkey_patches.rb, line 126 def default_env DEFAULT_ENV end
get_env(name, mode = default_env)
click to toggle source
# File lib/rspec-puppet/monkey_patches.rb, line 136 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
Also aliased as: old_get_env
path_to_uri(*args)
click to toggle source
# File lib/rspec-puppet/monkey_patches.rb, line 151 def path_to_uri(*args) if RSpec::Puppet.rspec_puppet_example? RSpec::Puppet::Consts.without_stubs do old_path_to_uri(*args) end else old_path_to_uri(*args) end end
Also aliased as: old_path_to_uri