Sha256: 0e9451e13fb32bcef307a557f8741fe61e2857f9798f28c8ca2f0749bf5a951e
Contents?: true
Size: 297 Bytes
Versions: 9
Compression:
Stored size: 297 Bytes
Contents
class Specinfra::Command::Base::Group < Specinfra::Command::Base def check_exists(group) "getent group #{escape(group)}" end def check_has_gid(group, gid) regexp = "^#{group}" "getent group | grep -w -- #{escape(regexp)} | cut -f 3 -d ':' | grep -w -- #{escape(gid)}" end end
Version data entries
9 entries across 9 versions & 1 rubygems