Method: Inspec::Resources::IisSite#initialize
- Defined in:
- lib/resources/iis_site.rb
#initialize(site_name) ⇒ IisSite
Returns a new instance of IisSite.
32 33 34 35 36 37 38 39 40 |
# File 'lib/resources/iis_site.rb', line 32 def initialize(site_name) @site_name = site_name @cache = nil @site_provider = SiteProvider.new(inspec) # verify that this resource is only supported on Windows return skip_resource 'The `iis_site` resource is not supported on your OS.' if inspec.os[:family] != 'windows' end |