aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cask/lib/hbc/cli/internal_audit_modified_casks.rb14
1 files changed, 6 insertions, 8 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/cli/internal_audit_modified_casks.rb b/Library/Homebrew/cask/lib/hbc/cli/internal_audit_modified_casks.rb
index 1a8ca0e98..371e19570 100644
--- a/Library/Homebrew/cask/lib/hbc/cli/internal_audit_modified_casks.rb
+++ b/Library/Homebrew/cask/lib/hbc/cli/internal_audit_modified_casks.rb
@@ -8,9 +8,12 @@ module Hbc
end
def self.run(*args)
- commit_range = commit_range(args)
- cleanup = args.any? { |a| a =~ /^-+c(leanup)?$/i }
- new(commit_range, cleanup: cleanup).run
+ new(*args).run
+ end
+
+ def initialize(*args)
+ @commit_range = self.class.commit_range(args)
+ @cleanup = args.any? { |a| a =~ /^-+c(leanup)?$/i }
end
def self.commit_range(args)
@@ -41,11 +44,6 @@ module Hbc
EOS
end
- def initialize(commit_range, cleanup: false)
- @commit_range = commit_range
- @cleanup = cleanup
- end
-
attr_reader :commit_range
def cleanup?