Method: LinuxAdmin::FSTabEntry.from_line
- Defined in:
- lib/linux_admin/fstab.rb
.from_line(fstab_line) ⇒ Object
23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/linux_admin/fstab.rb', line 23 def self.from_line(fstab_line) columns, comment = fstab_line.split('#') comment = "##{comment}" unless comment.blank? columns = columns.chomp.split FSTabEntry.new(:device => columns[0], :mount_point => columns[1], :fs_type => columns[2], :mount_options => columns[3], :dumpable => columns[4], :fsck_order => columns[5], :comment => comment) end |