Method: Specinfra::Command::Windows::Base::IisAppPool.check_has_dotnet_version

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

.check_has_dotnet_version(name, dotnet) ⇒ Object

[View source]

10
11
12
13
14
15
# File 'lib/specinfra/command/windows/base/iis_app_pool.rb', line 10

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