Method: Specinfra::Command::Linux::Base::Fstab.check_has_entry
- Defined in:
- lib/specinfra/command/linux/base/fstab.rb
.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 |