class EC2::Platform::Linux::Fstab::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/fstab.rb, line 31 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/fstab.rb, line 39 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
# File lib/ec2/platform/linux/fstab.rb, line 53 def print puts(to_s) end
to_s()
click to toggle source
# File lib/ec2/platform/linux/fstab.rb, line 49 def to_s value end