Sha256: f5063b43bbc406b0d940d15ed07bf2c25300161bfdccb8857db8d8e78c1ed99b

Contents?: true

Size: 731 Bytes

Versions: 45

Compression:

Stored size: 731 Bytes

Contents

#
# corl_initialize.rb
#
# Initialize the CORL plugin system through Puppet
#
module Puppet::Parser::Functions
  newfunction(:corl_initialize, :doc => <<-EOS
This function initializes the CORL plugin system through Puppet.
    EOS
) do |args|    
    CORL.run do
      # Register all Nucleon plugins defined by Puppet modules.
      CORL::Util::Puppet.register_plugins({ :puppet_scope => self })
      
      # Make sure defaults are evaluated first!
      if compiler.node.classes.is_a?(Hash)
        compiler.node.classes.each do |name, parameters|
          if name.match(/::default:?/)            
            compiler.evaluate_classes({ name => parameters }, self, false)
          end
        end
      end
    end
  end
end

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
corl-0.5.18 lib/puppet/parser/functions/corl_initialize.rb
corl-0.5.17 lib/puppet/parser/functions/corl_initialize.rb
corl-0.5.16 lib/puppet/parser/functions/corl_initialize.rb
corl-0.5.15 lib/puppet/parser/functions/corl_initialize.rb
corl-0.5.14 lib/puppet/parser/functions/corl_initialize.rb
corl-0.5.13 lib/puppet/parser/functions/corl_initialize.rb
corl-0.5.12 lib/puppet/parser/functions/corl_initialize.rb
corl-0.5.11 lib/puppet/parser/functions/corl_initialize.rb
corl-0.5.10 lib/puppet/parser/functions/corl_initialize.rb
corl-0.5.9 lib/puppet/parser/functions/corl_initialize.rb
corl-0.5.8 lib/puppet/parser/functions/corl_initialize.rb
corl-0.5.7 lib/puppet/parser/functions/corl_initialize.rb
corl-0.5.6 lib/puppet/parser/functions/corl_initialize.rb
corl-0.5.5 lib/puppet/parser/functions/corl_initialize.rb
corl-0.5.4 lib/puppet/parser/functions/corl_initialize.rb
corl-0.5.3 lib/puppet/parser/functions/corl_initialize.rb
corl-0.5.2 lib/puppet/parser/functions/corl_initialize.rb
corl-0.5.1 lib/puppet/parser/functions/corl_initialize.rb
corl-0.5.0 lib/puppet/parser/functions/corl_initialize.rb
corl-0.4.29 lib/puppet/parser/functions/corl_initialize.rb