Method: Inspec::Resources::IisSite#initialize
- Defined in:
- lib/inspec/resources/iis_site.rb
#initialize(site_name) ⇒ IisSite
Returns a new instance of IisSite.
34 35 36 37 38 39 40 41 42 |
# File 'lib/inspec/resources/iis_site.rb', line 34 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 |