Sha256: 386069b03d0fd0eaf80cae2e87e0181bbd808112978d4898bca3fe7b69039e91

Contents?: true

Size: 557 Bytes

Versions: 5

Compression:

Stored size: 557 Bytes

Contents

class Specinfra::Command::Aix::Base::User < Specinfra::Command::Base::User
  def check_is_belonging_to_group(user, group)
    "lsuser -a groups #{escape(user)} | awk -F'=' '{print $2}'| sed -e 's/,/ /g' |grep -w  -- #{escape(group)}"
  end

  def check_has_login_shell(user, path_to_shell)
    "lsuser -a shell #{escape(user)} |awk -F'=' '{print $2}' | grep -w -- #{escape(path_to_shell)}"
  end

  def check_has_home_directory(user, path_to_home)
    "lsuser -a home #{escape(user)} | awk -F'=' '{print $2}' | grep -w -- #{escape(path_to_home)}"
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
specinfra-2.0.0.beta11 lib/specinfra/command/aix/base/user.rb
specinfra-2.0.0.beta10 lib/specinfra/command/aix/base/user.rb
specinfra-2.0.0.beta9 lib/specinfra/command/aix/base/user.rb
specinfra-2.0.0.beta8 lib/specinfra/command/aix/base/user.rb
specinfra-2.0.0.beta7 lib/specinfra/command/aix/base/user.rb