Method: IisAppPool#initialize

Defined in:
lib/resources/iis_app_pool.rb

#initialize(pool_name) ⇒ IisAppPool

Returns a new instance of IisAppPool.



18
19
20
21
22
23
24
25
# File 'lib/resources/iis_app_pool.rb', line 18

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