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

Version Path
facter-4.0.34 lib/facter/facts/solaris/mountpoints.rb
facter-4.0.33 lib/facter/facts/solaris/mountpoints.rb
facter-4.0.32 lib/facter/facts/solaris/mountpoints.rb
facter-4.0.31 lib/facter/facts/solaris/mountpoints.rb
facter-4.0.30 lib/facter/facts/solaris/mountpoints.rb
facter-4.0.29 lib/facts/solaris/mountpoints.rb
facter-4.0.28 lib/facts/solaris/mountpoints.rb
facter-4.0.26 lib/facts/solaris/mountpoints.rb
facter-4.0.25 lib/facts/solaris/mountpoints.rb
facter-4.0.24 lib/facts/solaris/mountpoints.rb
facter-4.0.23 lib/facts/solaris/mountpoints.rb
facter-4.0.22 lib/facts/solaris/mountpoints.rb