Class: EC2::Platform::Linux::Fstab::Entry
- Inherits:
-
Object
- Object
- EC2::Platform::Linux::Fstab::Entry
- Defined in:
- lib/ec2/platform/linux/fstab.rb
Constant Summary collapse
- REGEX =
/^(\S+)\s+(\S+)\s+(\S+)\s+(\S+).*$/
Instance Attribute Summary collapse
-
#device ⇒ Object
readonly
mounted device.
-
#fstype ⇒ Object
readonly
file system type.
-
#mpoint ⇒ Object
readonly
mount point.
-
#options ⇒ Object
readonly
options.
-
#value ⇒ Object
readonly
everything on line.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(dev, mnt_point, fs_type, opts, line) ⇒ Entry
constructor
A new instance of Entry.
- #print ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(dev, mnt_point, fs_type, opts, line) ⇒ Entry
Returns a new instance of Entry.
31 32 33 34 35 36 37 |
# 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 |
Instance Attribute Details
#device ⇒ Object (readonly)
mounted device.
25 26 27 |
# File 'lib/ec2/platform/linux/fstab.rb', line 25 def device @device end |
#fstype ⇒ Object (readonly)
file system type.
27 28 29 |
# File 'lib/ec2/platform/linux/fstab.rb', line 27 def fstype @fstype end |
#mpoint ⇒ Object (readonly)
mount point.
26 27 28 |
# File 'lib/ec2/platform/linux/fstab.rb', line 26 def mpoint @mpoint end |
#options ⇒ Object (readonly)
options
28 29 30 |
# File 'lib/ec2/platform/linux/fstab.rb', line 28 def @options end |
#value ⇒ Object (readonly)
everything on line
29 30 31 |
# File 'lib/ec2/platform/linux/fstab.rb', line 29 def value @value end |
Class Method Details
Instance Method Details
#print ⇒ Object
53 54 55 |
# File 'lib/ec2/platform/linux/fstab.rb', line 53 def print puts(to_s) end |
#to_s ⇒ Object
49 50 51 |
# File 'lib/ec2/platform/linux/fstab.rb', line 49 def to_s value end |