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

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

.check_is_accessible_by_user(file, user, access) ⇒ Object

[View source]

57
58
59
60
61
62
63
64
65
66
# File 'lib/specinfra/command/windows/base/file.rb', line 57

def check_is_accessible_by_user(file, user, access)
  case access
  when 'r'
    check_is_readable(file, user)
  when 'w'
    check_is_writable(file, user)
  when 'x'
    check_is_executable(file, user)
  end
end