Class: Intrigue::Ident::Check::Jupyter

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

def generate_checks(url)
  [
    {
      :type => "application",
      :vendor => "Jupyter",
      :tags => [],
      :product =>"Notebook",
      :match_details =>"matched jupyterhub header",
      :match_type => :content_headers,
      :version => nil,
      :dynamic_version => lambda { |x| _first_header_capture(x,/^x-jupyterhub-version: (.*)$/) },
      :match_content =>  /x-jupyterhub-version:/i,
      :examples => ["https://18.18.154.11:443"],
      :paths => ["#{url}"]
    }
  ]
end