File: iis_website.rb

package info (click to toggle)
ruby-serverspec 2.42.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 980 kB
  • sloc: ruby: 4,835; makefile: 4
file content (40 lines) | stat: -rw-r--r-- 1,008 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
module Serverspec::Type
  class IisWebsite < Base

    def exists?()
      @runner.check_iis_website_is_installed(@name)
    end

    def enabled?()
      @runner.check_iis_website_is_enabled(@name)
    end

    def running?()
      @runner.check_iis_website_is_running(@name)
    end

    def in_app_pool?(app_pool)
      @runner.check_iis_website_is_in_app_pool(@name, app_pool)
    end

    def has_physical_path?(path)
      @runner.check_iis_website_has_physical_path(@name, path)
    end

    def has_site_bindings?(port, protocol, ipaddress, host_header)
      @runner.check_iis_website_has_site_bindings(@name, port, protocol, ipaddress, host_header)
    end
      
    def has_virtual_dir?(vdir, path)
      @runner.check_iis_website_has_virtual_dir(@name, vdir, path)
    end
      
    def has_site_application?(app, pool, physical_path)
      @runner.check_iis_website_has_site_application(@name, app, pool, physical_path)
    end

    def to_s
      %Q[IIS Website "#{@name}"]
    end
  end
end