Skip to content
Snippets Groups Projects
Commit 16c17433 authored by Markus Reiter's avatar Markus Reiter
Browse files

Fix passing options through `Auditor`.

parent 7c05b2f2
No related branches found
No related tags found
No related merge requests found
...@@ -7,8 +7,6 @@ module Cask ...@@ -7,8 +7,6 @@ module Cask
# #
# @api private # @api private
class Auditor class Auditor
extend Predicable
def self.audit( def self.audit(
cask, cask,
audit_download: nil, audit_download: nil,
...@@ -57,9 +55,6 @@ module Cask ...@@ -57,9 +55,6 @@ module Cask
@language = language @language = language
end end
attr_predicate :audit_appcast?, :audit_download?, :audit_online?,
:audit_strict?, :audit_new_cask?, :audit_token_conflicts?, :quarantine?
def audit def audit
warnings = Set.new warnings = Set.new
errors = Set.new errors = Set.new
...@@ -95,13 +90,13 @@ module Cask ...@@ -95,13 +90,13 @@ module Cask
def audit_cask_instance(cask) def audit_cask_instance(cask)
audit = Audit.new( audit = Audit.new(
cask, cask,
appcast: audit_appcast?, appcast: @audit_appcast,
online: audit_online?, online: @audit_online,
strict: audit_strict?, strict: @audit_strict,
new_cask: audit_new_cask?, new_cask: @audit_new_cask,
token_conflicts: audit_token_conflicts?, token_conflicts: @audit_token_conflicts,
download: audit_download?, download: @audit_download,
quarantine: quarantine?, quarantine: @quarantine,
) )
audit.run! audit.run!
audit audit
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment