Class: PortScanner::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/port_scanner/cli.rb

Instance Method Summary collapse

Instance Method Details

#scan(ipaddress, port) ⇒ Object



25
26
27
28
# File 'lib/port_scanner/cli.rb', line 25

def scan( ipaddress, port )
  scanner = PortScanner::TCP.new
  puts scanner.scan(ipaddress, port)
end