module Serverspec
  module Type
    class IisWebsite < Base
      def enabled?()
        backend.check_iis_website_enabled(@name)
      end

      def installed?(provider, version)
        backend.check_iis_website_installed(@name)
      end

      def running?()
          backend.check_iis_website_running(@name)
      end

      def in_app_pool?(app_pool)
        backend.check_iis_app_pool(@name, app_pool)
      end

      def path(path)
          backend.check_iis_website_path(@name, path)
      end
  

    end
  end
end

module Serverspec
  module Type
    class IisWebsite < Base
      def enabled?()
        backend.check_iis_website_enabled(@name)
      end

      def installed?(provider, version)
        backend.check_iis_website_installed(@name)
      end

      def running?()
          backend.check_iis_website_running(@name)
      end

      def in_app_pool?(app_pool)
        backend.check_iis_app_pool(@name, app_pool)
      end

      def has_physical_path?(path)
          backend.check_iis_website_path(@name, path)
      end

      def to_s
        'IIS Website'
      end
  
    end
  end
end

Verify the physical path of the website
Verify the physical path of the website
