Method: Specinfra::Command::Openbsd::Base::Fstab.check_has_entry

Defined in:
lib/specinfra/command/openbsd/base/fstab.rb

.check_has_entry(mount_point) ⇒ Object Also known as: get_entry

[View source]

3
4
5
# File 'lib/specinfra/command/openbsd/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