Class: Facts::Macosx::Mountpoints

Inherits:
Object
  • Object
show all
Defined in:
lib/facter/facts/macosx/mountpoints.rb

Constant Summary collapse

FACT_NAME =
'mountpoints'

Instance Method Summary collapse

Instance Method Details

#call_the_resolverObject



8
9
10
11
12
13
# File 'lib/facter/facts/macosx/mountpoints.rb', line 8

def call_the_resolver
  mountpoints = Facter::Resolvers::Macosx::Mountpoints.resolve(FACT_NAME.to_sym)
  return Facter::ResolvedFact.new(FACT_NAME, nil) unless mountpoints

  Facter::ResolvedFact.new(FACT_NAME, mountpoints)
end