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

Version Path
specinfra-2.0.0.beta15 lib/specinfra/command/base/group.rb
specinfra-2.0.0.beta14 lib/specinfra/command/base/group.rb
specinfra-2.0.0.beta13 lib/specinfra/command/base/group.rb
specinfra-2.0.0.beta12 lib/specinfra/command/base/group.rb
specinfra-2.0.0.beta11 lib/specinfra/command/base/group.rb
specinfra-2.0.0.beta10 lib/specinfra/command/base/group.rb
specinfra-2.0.0.beta9 lib/specinfra/command/base/group.rb
specinfra-2.0.0.beta8 lib/specinfra/command/base/group.rb
specinfra-2.0.0.beta7 lib/specinfra/command/base/group.rb