Method: Specinfra::Command::Windows::Base::File.check_is_writable
- Defined in:
- lib/specinfra/command/windows/base/file.rb
permalink .check_is_writable(file, by_whom) ⇒ Object
[View source]
75 76 77 78 79 80 |
# File 'lib/specinfra/command/windows/base/file.rb', line 75 def check_is_writable(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', 'Write')" end end |