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.4.28 lib/puppet/parser/functions/corl_initialize.rb
corl-0.4.27 lib/puppet/parser/functions/corl_initialize.rb
corl-0.4.26 lib/puppet/parser/functions/corl_initialize.rb
corl-0.4.25 lib/puppet/parser/functions/corl_initialize.rb
corl-0.4.24 lib/puppet/parser/functions/corl_initialize.rb
corl-0.4.23 lib/puppet/parser/functions/corl_initialize.rb
corl-0.4.22 lib/puppet/parser/functions/corl_initialize.rb
corl-0.4.21 lib/puppet/parser/functions/corl_initialize.rb
corl-0.4.20 lib/puppet/parser/functions/corl_initialize.rb
corl-0.4.19 lib/puppet/parser/functions/corl_initialize.rb
corl-0.4.18 lib/puppet/parser/functions/corl_initialize.rb
corl-0.4.17 lib/puppet/parser/functions/corl_initialize.rb
corl-0.4.16 lib/puppet/parser/functions/corl_initialize.rb
corl-0.4.15 lib/puppet/parser/functions/corl_initialize.rb
corl-0.4.14 lib/puppet/parser/functions/corl_initialize.rb
corl-0.4.13 lib/puppet/parser/functions/corl_initialize.rb
corl-0.4.12 lib/puppet/parser/functions/corl_initialize.rb
corl-0.4.11 lib/puppet/parser/functions/corl_initialize.rb
corl-0.4.10 lib/puppet/parser/functions/corl_initialize.rb
corl-0.4.9 lib/puppet/parser/functions/corl_initialize.rb