File: fstab.rb

package info (click to toggle)
ruby-specinfra 2.94.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,448 kB
  • sloc: ruby: 10,538; sh: 4; makefile: 4
file content (9 lines) | stat: -rw-r--r-- 283 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
class Specinfra::Command::Linux::Base::Fstab < Specinfra::Command::Base::Fstab
  class << self
    def check_has_entry(mount_point)
      %Q(awk '{if($2=="#{escape(mount_point)}")print}' /etc/fstab | grep -v '^[[:space:]]*#')
    end

    alias :get_entry :check_has_entry
  end
end