Method: Specinfra::Command::Windows::Base::File.check_is_readable
- Defined in:
- lib/specinfra/command/windows/base/file.rb
permalink .check_is_readable(file, by_whom) ⇒ Object
[View source]
68 69 70 71 72 73 |
# File 'lib/specinfra/command/windows/base/file.rb', line 68 def check_is_readable(file, by_whom) Backend::PowerShell::Command.new do using 'check_file_access_rules.ps1' exec "CheckFileAccessRules -path '#{file}' -identity '#{get_identity by_whom}' -rules @('FullControl', 'Modify', 'ReadAndExecute', 'Read', 'ListDirectory')" end end |