Class: Inspec::Resources::IisSiteServerSpec

Inherits:
IisSite
  • Object
show all
Defined in:
lib/resources/iis_site.rb

Overview

for compatability with serverspec this is deprecated syntax and will be removed in future versions

Instance Method Summary collapse

Methods inherited from IisSite

#app_pool, #bindings, #exists?, #has_app_pool?, #has_binding?, #has_path?, #iis_site, #path, #running?, #state, #to_s

Constructor Details

#initialize(site_name) ⇒ IisSiteServerSpec

Returns a new instance of IisSiteServerSpec.



136
137
138
139
# File 'lib/resources/iis_site.rb', line 136

def initialize(site_name)
  super(site_name)
  warn '[DEPRECATION] `iis_website(site_name)` is deprecated.  Please use `iis_site(site_name)` instead.'
end

Instance Method Details

#in_app_pool?(app_pool) ⇒ Boolean

Returns:

  • (Boolean)


141
142
143
# File 'lib/resources/iis_site.rb', line 141

def in_app_pool?(app_pool)
  has_app_pool?(app_pool)
end