2012-11-19 13:12:21 +08:00
|
|
|
class Cask::Auditor
|
2013-07-06 18:35:14 +08:00
|
|
|
def self.audit(cask, options = {})
|
2012-11-19 13:12:21 +08:00
|
|
|
audit = Cask::Audit.new(cask)
|
2013-07-06 18:35:14 +08:00
|
|
|
|
|
|
|
if options.fetch(:audit_download, false)
|
|
|
|
audit.run!(Cask::Download.new(cask))
|
|
|
|
else
|
|
|
|
audit.run!
|
|
|
|
end
|
|
|
|
|
2012-11-19 13:12:21 +08:00
|
|
|
puts audit.summary
|
|
|
|
end
|
|
|
|
end
|