Class: Facts::Openbsd::Mountpoints
- Inherits:
-
Object
- Object
- Facts::Openbsd::Mountpoints
- Defined in:
- lib/facter/facts/openbsd/mountpoints.rb
Constant Summary collapse
- FACT_NAME =
'mountpoints'
Instance Method Summary collapse
Instance Method Details
#call_the_resolver ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/facter/facts/openbsd/mountpoints.rb', line 8 def call_the_resolver mountpoints = Facter::Resolvers::Openbsd::Mountpoints.resolve(FACT_NAME.to_sym) return Facter::ResolvedFact.new(FACT_NAME, nil) unless mountpoints fact = {} mountpoints.each do |path, mnt| fact[path.to_sym] = mnt.reject { |k| k == :path } end Facter::ResolvedFact.new(FACT_NAME, fact) end |