Sha256: f13ff3230e9ac4faac7e51646199a4adc6cac4e17ed37231dcd73bce7aa4c865

Contents?: true

Size: 309 Bytes

Versions: 15

Compression:

Stored size: 309 Bytes

Contents

Facter.add(:corl_exists) do
  confine :kernel => :linux
  
  setcode do
    corl_exists = nil 
    begin
      Facter::Util::Resolution::exec('gem list corl -i 2> /dev/null')
      corl_exists = true if $?.exitstatus == 0
      
    rescue Exception # Prevent abortions.
    end    
    corl_exists
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
corl-0.4.17 lib/facter/corl_exists.rb
corl-0.4.16 lib/facter/corl_exists.rb
corl-0.4.15 lib/facter/corl_exists.rb
corl-0.4.14 lib/facter/corl_exists.rb
corl-0.4.13 lib/facter/corl_exists.rb
corl-0.4.12 lib/facter/corl_exists.rb
corl-0.4.11 lib/facter/corl_exists.rb
corl-0.4.10 lib/facter/corl_exists.rb
corl-0.4.9 lib/facter/corl_exists.rb
corl-0.4.8 lib/facter/corl_exists.rb
corl-0.4.7 lib/facter/corl_exists.rb
corl-0.4.6 lib/facter/corl_exists.rb
corl-0.4.5 lib/facter/corl_exists.rb
corl-0.4.4 lib/facter/corl_exists.rb
corl-0.4.3 lib/facter/corl_exists.rb