Method: Specinfra::Command::Solaris::Base::File.check_is_accessible_by_user

Defined in:
lib/specinfra/command/solaris/base/file.rb

.check_is_accessible_by_user(file, user, access) ⇒ Object


13
14
15
16
17
18
# File 'lib/specinfra/command/solaris/base/file.rb', line 13

def check_is_accessible_by_user(file, user, access)
  # http://docs.oracle.com/cd/E23823_01/html/816-5166/su-1m.html
  ## No need for login shell as it seems that behavior as superuser is favorable for us, but needs
  ## to be better tested under real solaris env
  "su #{user} -c \"test -#{access} #{file}\""
end