Class: Specinfra::Command::Windows::Base::IisAppPool
- Inherits:
-
Specinfra::Command::Windows::Base
- Object
- Specinfra::Command::Windows::Base
- Specinfra::Command::Windows::Base::IisAppPool
- Defined in:
- lib/specinfra/command/windows/base/iis_app_pool.rb
Class Method Summary collapse
- .check_exists(name) ⇒ Object
- .check_has_32bit_enabled(name) ⇒ Object
- .check_has_dotnet_version(name, dotnet) ⇒ Object
- .check_has_identity_type(name, type) ⇒ Object
- .check_has_idle_timeout(name, minutes) ⇒ Object
- .check_has_managed_pipeline_mode(name, mode) ⇒ Object
- .check_has_periodic_restart(name, minutes) ⇒ Object
- .check_has_user_profile(name) ⇒ Object
- .check_has_username(name, username) ⇒ Object
Methods inherited from Specinfra::Command::Windows::Base
Class Method Details
.check_exists(name) ⇒ Object
3 4 5 6 7 8 |
# File 'lib/specinfra/command/windows/base/iis_app_pool.rb', line 3 def check_exists(name) Backend::PowerShell::Command.new do using 'find_iis_component.ps1' exec "@(FindIISAppPool -name '#{name}').count -gt 0" end end |
.check_has_32bit_enabled(name) ⇒ Object
17 18 19 20 21 22 |
# File 'lib/specinfra/command/windows/base/iis_app_pool.rb', line 17 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 |
.check_has_dotnet_version(name, dotnet) ⇒ Object
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 |
.check_has_identity_type(name, type) ⇒ Object
31 32 33 34 35 36 |
# File 'lib/specinfra/command/windows/base/iis_app_pool.rb', line 31 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 |
.check_has_idle_timeout(name, minutes) ⇒ Object
24 25 26 27 28 29 |
# File 'lib/specinfra/command/windows/base/iis_app_pool.rb', line 24 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 |
.check_has_managed_pipeline_mode(name, mode) ⇒ Object
59 60 61 62 63 64 |
# File 'lib/specinfra/command/windows/base/iis_app_pool.rb', line 59 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 |
.check_has_periodic_restart(name, minutes) ⇒ Object
52 53 54 55 56 57 |
# File 'lib/specinfra/command/windows/base/iis_app_pool.rb', line 52 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 |
.check_has_user_profile(name) ⇒ Object
38 39 40 41 42 43 |
# File 'lib/specinfra/command/windows/base/iis_app_pool.rb', line 38 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 |
.check_has_username(name, username) ⇒ Object
45 46 47 48 49 50 |
# File 'lib/specinfra/command/windows/base/iis_app_pool.rb', line 45 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 |