Class: WhatWeb::CLI
Instance Method Summary collapse
Instance Method Details
#list_plugins ⇒ Object
22 23 24 25 26 |
# File 'lib/whatweb/cli.rb', line 22 def list_plugins with_error_handling do puts plugin_names.to_json end end |
#scan(url) ⇒ Object
11 12 13 14 15 16 17 18 19 |
# File 'lib/whatweb/cli.rb', line 11 def scan(url) user_agent = [:user_agent] is_aggressive = [:aggressive] with_error_handling do hash = execute_plugins(url, user_agent: user_agent, is_aggressive: is_aggressive) puts hash.to_json end end |