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

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

.check_is_executable(file, by_whom) ⇒ Object

[View source]

82
83
84
85
86
87
# File 'lib/specinfra/command/windows/base/file.rb', line 82

def check_is_executable(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', 'ExecuteFile')"
  end
end