Class: Intrigue::Ident::Check::Jenkins

Inherits:
Base
  • Object
show all
Defined in:
lib/checks/jenkins.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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# File 'lib/checks/jenkins.rb', line 6

def generate_checks(url)
  [
    { # might need to be its own, but haven't seen it yet outside jenkins
      :type => "application",
      :vendor => "Jenkins",
      :product => "Hudson",
      :match_details => "Hudson",
      :version => nil,
      :match_type => :content_headers,
      :match_content =>  /x-hudson/i,
      :dynamic_version => lambda { |x| _first_header_capture(x, /^x-hudson:(.*)$/) },
      :paths => ["#{url}"]
    },
    {
      :type => "application",
      :vendor => "Jenkins",
      :product =>"Jenkins",
      :match_details =>"Jenkins",
      :version => nil,
      :match_type => :content_headers,
      :match_content =>  /X-Jenkins-Session/i,
      :paths => ["#{url}"]
    },
    {
      :type => "application",
      :vendor => "Jenkins",
      :product =>"Jenkins",
      :match_details =>"Jenkins",
      :version => nil,
      :match_type => :content_headers,
      :match_content =>  /x-jenkins/i,
      :dynamic_version => lambda { |x| _first_header_capture(x, /^x-jenkins:(.*)$/) },
      :paths => ["#{url}"]
    }
  ]
end