/usr/lib/ruby/vendor_ruby/serverspec/type/iis_website.rb is in ruby-serverspec 2.37.2-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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
|