Sha256: 9302207c8918518e46697769f859d1079c80d0fa079097aeec82de3add7acb08
Contents?: true
Size: 700 Bytes
Versions: 3
Compression:
Stored size: 700 Bytes
Contents
# # config_initialized.rb # # This function checks if the configuration system is fully configured # and ready to query. # module Puppet::Parser::Functions newfunction(:config_initialized, :type => :rvalue, :doc => <<-EOS This function checks if Hiera is fully configured and ready to query. EOS ) do |args| value = nil CORL.run do options = ( args[0].is_a?(Hash) ? args[0] : {} ) config = CORL::Config.init_flat(options, [ :init, :config_initialized ], { :hiera_scope => self, :puppet_scope => self, :init_fact => 'corl_config_ready' }) value = CORL::Config.initialized?(config) end return value end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
corl-0.4.2 | lib/puppet/parser/functions/config_initialized.rb |
corl-0.4.1 | lib/puppet/parser/functions/config_initialized.rb |
corl-0.4.0 | lib/puppet/parser/functions/config_initialized.rb |