Class: Intrigue::Ident::Check::Chef

Inherits:
Base
  • Object
show all
Defined in:
lib/checks/chef.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
# File 'lib/checks/chef.rb', line 6

def generate_checks(url)
  [
    {
      :type => "application",
      :vendor => "Chef",
      :product =>"Server",
      :match_details =>"Chef Server",
      :version => nil,
      :match_type => :content_body,
      :match_content =>  /<title>Chef Server<\/title>/,
      :dynamic_version => lambda{|x| _first_body_capture(/Version\ (.*)\ &mdash;/) },
      :paths => ["#{url}"]
    },
    {
      :type => "application",
      :vendor => "Chef",
      :product =>"Server",
      :match_details =>"Chef Server",
      :version => nil,
      :match_type => :content_cookies,
      :match_content =>  /chef-manage/i,
      :paths => ["#{url}"]
    }
  ]
end