Sha256: a32a25a1070ff5f167c3e93053a1f57d92a4f7b78c379f573331044fce86983d

Contents?: true

Size: 204 Bytes

Versions: 5

Compression:

Stored size: 204 Bytes

Contents

module Onering
  module Util
    ENV['FACTERLIB'] = '/etc/facter'
    require 'facter'

    class<<self
      def fact(name, default=nil)
        Facter.value(name) or default
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
onering-client-0.0.29 lib/onering/util.rb
onering-client-0.0.28 lib/onering/util.rb
onering-client-0.0.27 lib/onering/util.rb
onering-client-0.0.26 lib/onering/util.rb
onering-client-0.0.25 lib/onering/util.rb