lib/puppet-debugger/support/environment.rb in puppet-debugger-0.6.1 vs lib/puppet-debugger/support/environment.rb in puppet-debugger-0.7.0
- old
+ new
@@ -1,13 +1,15 @@
# frozen_string_literal: true
+
module PuppetDebugger
module Support
module Environment
# creates a puppet environment given a module path and environment name
# this is cached
def puppet_environment
@puppet_environment ||= create_environment
end
+ alias :environment :puppet_environment
# returns an array of module directories, generally this is the only place
# to look for puppet code by default. This is read from the puppet configuration
def default_modules_paths
dirs = []