Method: Inspec::Resources::Mount#count

Defined in:
lib/resources/mount.rb

#countObject



33
34
35
36
37
# File 'lib/resources/mount.rb', line 33

def count
  mounted = file.mounted
  return nil if mounted.nil? || mounted.stdout.nil?
  mounted.stdout.lines.count
end