lib/bolt/pal.rb
# PALError is used to convert errors from executing puppet code into
# Bolt::Errors
PALError is used to convert errors from executing puppet code into
Bolt::Errors
PALError is used to convert errors from executing puppet code into Bolt :: Errors
def in_catalog_compiler
      with_puppet_settings do
        Puppet.override(bolt_project: @project) do
          Puppet::Pal.in_tmp_environment('bolt', modulepath: full_modulepath) do |pal|
            pal.with_catalog_compiler do |compiler|
              yield compiler
            end
          end
        end
      rescue Puppet::Error => e
        raise PALError.from_error(e)
      end
    end
def in_catalog_compiler with_puppet_settings do Puppet . override ( bolt_project : @project ) do Puppet :: Pal . in_tmp_environment ( 'bolt' , modulepath : full_modulepath ) do | pal | pal . with_catalog_compiler do | compiler | yield compiler end end end rescue Puppet :: Error => e raise PALError . from_error ( e ) end end
PALError is used to convert errors from executing puppet code into
Bolt::Errors
PALError is used to convert errors from executing puppet code into Bolt :: Errors