Method: Waps#scan

Defined in:
lib/waps.rb

#scanObject



15
16
17
18
19
20
21
22
23
24
25
26
27
# File 'lib/waps.rb', line 15

def scan
	if RUBY_PLATFORM =~ /win32/
	  return {error: "Not support for windows. Coming Soon."}
	elsif RUBY_PLATFORM =~ /linux/
	  new_scan = Waps_linux.new(@interface_name)
	  return @output = new_scan.scan
	elsif RUBY_PLATFORM =~ /darwin/
	  new_scan = Waps_mac.new
	  return @output = new_scan.scan
	else
	  return {error: "No support for this OS."}
	end
end