# File lib/specinfra/host_inventory/mount.rb, line 13 def parse(ret) mounts = [] ret.each_line do |line| mount = {} if line =~ /^(.+)\s+(.+)\s+(.+)\s+(.+)\s+(\d+)\s+(\d+)$/ mount['device'] = $1 mount['point'] = $2 mount['type'] = $3 mount['options'] = $4.split(',') mount['dump'] = $5 mount['pass'] = $6 end mounts << mount end mounts end