Class: WhatWeb::CLI

Inherits:
Thor show all
Defined in:
lib/whatweb/cli.rb

Instance Method Summary collapse

Instance Method Details

#list_pluginsObject



19
20
21
22
23
# File 'lib/whatweb/cli.rb', line 19

def list_plugins
  with_error_handling do
    puts plugin_names.to_json
  end
end

#scan(url) ⇒ Object



10
11
12
13
14
15
16
# File 'lib/whatweb/cli.rb', line 10

def scan(url)
  is_aggressive = options[:aggressive]
  with_error_handling do
    hash = execute_plugins(url, is_aggressive)
    puts hash.to_json
  end
end