class EC2::Platform::Linux::Mtab::Entry

Constants

REGEX

Attributes

device[R]
fstype[R]
mpoint[R]
options[R]
value[R]

Public Class Methods

new(dev, mnt_point, fs_type, opts, line) click to toggle source
# File lib/ec2/platform/linux/mtab.rb, line 25
def initialize(dev, mnt_point, fs_type, opts, line)
  @device = dev
  @mpoint = mnt_point
  @fstype = fs_type
  @options= opts
  @value  = line
end
parse(line) click to toggle source
# File lib/ec2/platform/linux/mtab.rb, line 33
def self.parse(line)
  return nil if line[0,1] == '#'
  if (m = REGEX.match(line))
    parts = m.captures
    return Entry.new(parts[0], parts[1], parts[2], parts[3], line.strip)
  else
    return nil
  end
end

Public Instance Methods

print() click to toggle source
to_s() click to toggle source
# File lib/ec2/platform/linux/mtab.rb, line 43
def to_s
  value
end