Class: Serverspec::Type::IisWebsite
- Inherits:
-
Base
- Object
- Base
- Serverspec::Type::IisWebsite
show all
- Defined in:
- lib/serverspec/type/iis_website.rb
Instance Attribute Summary
Attributes inherited from Base
#name
Instance Method Summary
collapse
Methods inherited from Base
#initialize, #inspect, #to_ary
Instance Method Details
#enabled? ⇒ Boolean
8
9
10
|
# File 'lib/serverspec/type/iis_website.rb', line 8
def enabled?()
@runner.check_iis_website_is_enabled(@name)
end
|
#exists? ⇒ Boolean
4
5
6
|
# File 'lib/serverspec/type/iis_website.rb', line 4
def exists?()
@runner.check_iis_website_is_installed(@name)
end
|
#has_physical_path?(path) ⇒ Boolean
20
21
22
|
# File 'lib/serverspec/type/iis_website.rb', line 20
def has_physical_path?(path)
@runner.check_iis_website_has_physical_path(@name, path)
end
|
#has_site_application?(app, pool, physical_path) ⇒ Boolean
32
33
34
|
# File 'lib/serverspec/type/iis_website.rb', line 32
def has_site_application?(app, pool, physical_path)
@runner.check_iis_website_has_site_application(@name, app, pool, physical_path)
end
|
#has_site_bindings?(port, protocol, ipaddress, host_header) ⇒ Boolean
24
25
26
|
# File 'lib/serverspec/type/iis_website.rb', line 24
def has_site_bindings?(port, protocol, ipaddress, )
@runner.check_iis_website_has_site_bindings(@name, port, protocol, ipaddress, )
end
|
#has_virtual_dir?(vdir, path) ⇒ Boolean
28
29
30
|
# File 'lib/serverspec/type/iis_website.rb', line 28
def has_virtual_dir?(vdir, path)
@runner.check_iis_website_has_virtual_dir(@name, vdir, path)
end
|
#in_app_pool?(app_pool) ⇒ Boolean
16
17
18
|
# File 'lib/serverspec/type/iis_website.rb', line 16
def in_app_pool?(app_pool)
@runner.check_iis_website_is_in_app_pool(@name, app_pool)
end
|
#running? ⇒ Boolean
12
13
14
|
# File 'lib/serverspec/type/iis_website.rb', line 12
def running?()
@runner.check_iis_website_is_running(@name)
end
|
#to_s ⇒ Object
36
37
38
|
# File 'lib/serverspec/type/iis_website.rb', line 36
def to_s
%Q[IIS Website "#{@name}"]
end
|