Class: Specinfra::Command::Linux::Base::Fstab
- Inherits:
-
Base::Fstab
- Object
- Base
- Base::Fstab
- Specinfra::Command::Linux::Base::Fstab
- Defined in:
- lib/specinfra/command/linux/base/fstab.rb
Class Method Summary collapse
- .check_has_entry(mount_point) ⇒ Object (also: get_entry)
Methods inherited from Base
Class Method Details
.check_has_entry(mount_point) ⇒ Object Also known as: get_entry
3 4 5 |
# File 'lib/specinfra/command/linux/base/fstab.rb', line 3 def check_has_entry(mount_point) %Q(awk '{if($2=="#{escape(mount_point)}")print}' /etc/fstab | grep -v '^[[:space:]]*#') end |