Class: Specinfra::Command::Openbsd::Base::Fstab

Inherits:
Base::Fstab show all
Defined in:
lib/specinfra/command/openbsd/base/fstab.rb

Class Method Summary collapse

Methods inherited from Base

create, escape

Class Method Details

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



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