Method: Inspec::Resources::IisAppPool#initialize
- Defined in:
- lib/inspec/resources/iis_app_pool.rb
#initialize(pool_name) ⇒ IisAppPool
Returns a new instance of IisAppPool.
22 23 24 25 26 27 28 29 |
# File 'lib/inspec/resources/iis_app_pool.rb', line 22 def initialize(pool_name) @pool_name = pool_name @pool_path = "IIS:\\AppPools\\#{@pool_name}" @cache = nil # verify that this resource is only supported on Windows return skip_resource "The `iis_app_pool` resource is not supported on your OS." unless inspec.os.windows? end |