lib/puppet-debugger/support/environment.rb in puppet-debugger-0.17.0 vs lib/puppet-debugger/support/environment.rb in puppet-debugger-0.18.0

- old
+ new

@@ -15,11 +15,12 @@ def default_modules_paths dirs = [] # add the puppet-debugger directory so we can load any defined functions dirs << File.join(Puppet[:environmentpath], default_puppet_env_name, 'modules') unless Puppet[:environmentpath].empty? dirs << Puppet.settings[:basemodulepath].split(File::PATH_SEPARATOR) + dirs << Puppet.settings[:vendormoduledir].split(File::PATH_SEPARATOR) if Puppet.settings[:vendormoduledir] dirs << bolt_modules - dirs.flatten.compact + dirs.flatten.compact.uniq end def bolt_modules spec = Gem::Specification.latest_specs.find { |spec| spec.name.eql?('bolt') } bolt_modules = File.join(spec.full_gem_path, 'bolt-modules') if spec