Method: Inspec::Resources::Mount#count

Defined in:
lib/resources/mount.rb

#countObject



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

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