/usr/lib/ruby/vendor_ruby/specinfra/command/windows/base/iis_app_pool.rb is in ruby-specinfra 2.35.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 | class Specinfra::Command::Windows::Base::IisAppPool < Specinfra::Command::Windows::Base
class << self
def check_exists(name)
Backend::PowerShell::Command.new do
using 'find_iis_component.ps1'
exec "@(FindIISAppPool -name '#{name}').count -gt 0"
end
end
def check_has_dotnet_version(name, dotnet)
Backend::PowerShell::Command.new do
using 'find_iis_component.ps1'
exec "(FindIISAppPool -name '#{name}').managedRuntimeVersion -match 'v#{dotnet}'"
end
end
def check_has_32bit_enabled(name)
Backend::PowerShell::Command.new do
using 'find_iis_component.ps1'
exec "(FindIISAppPool -name '#{name}').enable32BitAppOnWin64 -eq $true"
end
end
def check_has_idle_timeout(name, minutes)
Backend::PowerShell::Command.new do
using 'find_iis_component.ps1'
exec "(FindIISAppPool -name '#{name}').processModel.idleTimeout.Minutes -eq #{minutes}"
end
end
def check_has_identity_type(name, type)
Backend::PowerShell::Command.new do
using 'find_iis_component.ps1'
exec "(FindIISAppPool -name '#{name}').processModel.identityType -eq '#{type}'"
end
end
def check_has_user_profile(name)
Backend::PowerShell::Command.new do
using 'find_iis_component.ps1'
exec "(FindIISAppPool -name '#{name}').processModel.loadUserProfile -eq $true"
end
end
def check_has_username(name, username)
Backend::PowerShell::Command.new do
using 'find_iis_component.ps1'
exec "(FindIISAppPool -name '#{name}').processModel.username -eq '#{username}'"
end
end
def check_has_periodic_restart(name, minutes)
Backend::PowerShell::Command.new do
using 'find_iis_component.ps1'
exec "(FindIISAppPool -name '#{name}').recycling.periodicRestart.time.TotalMinutes -eq #{minutes}"
end
end
def check_has_managed_pipeline_mode(name, mode)
Backend::PowerShell::Command.new do
using 'find_iis_component.ps1'
exec "(FindIISAppPool -name '#{name}').managedPipelineMode -eq '#{mode}'"
end
end
end
end
|