Sha256: 38bf563b49fa785e3738bc4d4deaf80b0172d3e265adbd12fc493029d310f6c8
Contents?: true
Size: 515 Bytes
Versions: 12
Compression:
Stored size: 515 Bytes
Contents
# frozen_string_literal: true module Facts module Solaris class Mountpoints FACT_NAME = 'mountpoints' def call_the_resolver mountpoints = Facter::Resolvers::Linux::Mountpoints.resolve(FACT_NAME.to_sym) return Facter::ResolvedFact.new(FACT_NAME, nil) unless mountpoints fact = {} mountpoints.each do |mnt| fact[mnt[:path].to_sym] = mnt.reject { |k| k == :path } end Facter::ResolvedFact.new(FACT_NAME, fact) end end end end
Version data entries
12 entries across 12 versions & 1 rubygems