Sha256: 38a9704b2b8777bf06d0eed8e1ad5a893395c3e25db93df05afe33bbb16a6985

Contents?: true

Size: 238 Bytes

Versions: 30

Compression:

Stored size: 238 Bytes

Contents

Facter.add(:corl_config_ready) do  
  setcode do
    begin 
      require 'corl'      
      configured = CORL::Config.config_initialized?
      
    rescue Exception # Prevent abortions.
    end
  
    configured ? true : nil
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
corl-0.4.9 lib/facter/corl_config_ready.rb
corl-0.4.8 lib/facter/corl_config_ready.rb
corl-0.4.7 lib/facter/corl_config_ready.rb
corl-0.4.6 lib/facter/corl_config_ready.rb
corl-0.4.5 lib/facter/corl_config_ready.rb
corl-0.4.4 lib/facter/corl_config_ready.rb
corl-0.4.3 lib/facter/corl_config_ready.rb
corl-0.4.2 lib/facter/corl_config_ready.rb
corl-0.4.1 lib/facter/corl_config_ready.rb
corl-0.4.0 lib/facter/corl_config_ready.rb