Class: Puppet::Parser::ScriptCompiler
- Inherits:
-
Object
- Object
- Puppet::Parser::ScriptCompiler
- Defined in:
- lib/puppet-debugger/monkey_patches.rb
Overview
Bolt plans utilize the PAL Script Compiler to compile the code and thus don’t store a catalog with the scope. This is due to not needing the catalog in the scope. The debugger relies on the catalog being present in the scope and thus uses all the methods to discover various data in the catalog We monkey patch in a catalog here instead of changing our API for simplicity.
Instance Method Summary collapse
Instance Method Details
#catalog ⇒ Object
51 52 53 |
# File 'lib/puppet-debugger/monkey_patches.rb', line 51 def catalog @catalog ||= Puppet::Resource::Catalog.new(@node_name, @environment, 'bolt') end |