Sha256: 031476cd50a4baff8eb8f210d3232f485ea1871d4c7d9cecbc99e5cc876f7749

Contents?: true

Size: 374 Bytes

Versions: 9

Compression:

Stored size: 374 Bytes

Contents

class Specinfra::Command::Openbsd::Base::User < Specinfra::Command::Base::User
  def check_has_login_shell(user, path_to_shell)
    "getent passwd #{escape(user)} | cut -f 7 -d ':' | grep #{escape(path_to_shell)}"
  end

  def check_has_home_directory(user, path_to_home)
    "getent passwd #{escape(user)} | cut -f 6 -d ':' | grep #{escape(path_to_home)}"
  end
end







Version data entries

9 entries across 9 versions & 1 rubygems

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