Class: NetCrawl::CLI
- Inherits:
-
Object
- Object
- NetCrawl::CLI
- Defined in:
- lib/netcrawl/cli.rb
Defined Under Namespace
Classes: MissingHost, NoConfig
Instance Method Summary collapse
Instance Method Details
#run ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/netcrawl/cli.rb', line 9 def run output = NetCrawl.new.crawl @host output.clean! if @opts[:purge] output.resolve! if @opts[:resolve] if @opts[:graphviz] output.to_dot elsif @opts[:list] output.to_list elsif @opts[:json] output.to_json elsif @opts[:yaml] output.to_yaml else output.to_hash end end |