Class: Intrigue::Ident::Check::Jekyll

Inherits:
Base
  • Object
show all
Defined in:
lib/checks/jekyll.rb

Instance Method Summary collapse

Methods inherited from Base

inherited

Instance Method Details

#generate_checks(url) ⇒ Object



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/checks/jekyll.rb', line 6

def generate_checks(url)
  [
    {
      :type => "service",
      :vendor =>"Jekyll",
      :product =>"Jekyll",
      :match_details =>"server header for Jekyll",
      :references => ["https://jekyllrb.com/"],
      :match_type => :content_body,
      :match_content =>  /<meta name="generator" content="Jekyll v3.7.3"/i,
      :dynamic_version => lambda { |x|
        _first_body_capture(x,/<meta name="generator" content="Jekyll v(.*)"/i)
      },
      :examples => ["http://github.io:80"],
      :paths => ["#{url}"]
    }
  ]
end