Class: Intrigue::Ident::Check::Jamf

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

def generate_checks(url)
  [
    {
      :type => "application",
      :vendor => "Jamf",
      :tags => [],
      :product =>"Pro",
      :match_details =>"jamf pro login page",
      :match_type => :content_body,
      :version => nil,
      :dynamic_version => lambda { |x| _first_body_capture(x,/<title>Jamf Pro Login - Jamf Pro v(.*)</) },
      :match_content =>  /<title>Jamf Pro Login - Jamf Pro v/i,
      :examples => ["https://98.99.248.54:8443"],
      :paths => ["#{url}"]
    }
  ]
end