Class: Rclam::CLI
- Inherits:
-
Thor
- Object
- Thor
- Rclam::CLI
- Defined in:
- lib/rclam.rb
Instance Method Summary collapse
Instance Method Details
#scan(location = '/') ⇒ Object
12 13 14 15 16 17 18 19 |
# File 'lib/rclam.rb', line 12 def scan(location = '/') not_installed unless Rclam::ClamAV.installed? Rclam::ClamAV.update unless Rclam::ClamAV.up_to_date? puts "Scanning #{File.(location)}..." result = Rclam::ClamAV.scan location puts Rclam::Helpers.clamscan_report(result) end |