lib/cobench/match.rb in cobench-0.0.8 vs lib/cobench/match.rb in cobench-0.0.9
- old
+ new
@@ -23,20 +23,21 @@
# Match of masks.
# Author:: Yegor Bugayenko (yegor256@gmail.com)
# Copyright:: Copyright (c) 2022 Yegor Bugayenko
# License:: MIT
class Cobench::Match
- def initialize(opts)
+ def initialize(opts, loog)
@opts = opts
+ @loog = loog
end
def matches?(repo)
if !@opts[:include].empty? && @opts[:include].none? { |m| Cobench::Mask.new(m).matches?(repo) }
- loog.debug("Excluding #{repo}##{pr} due to lack of --include")
+ @loog.debug("Excluding #{repo} due to lack of --include")
return false
end
if @opts[:exclude].any? { |m| Cobench::Mask.new(m).matches?(repo) }
- loog.debug("Excluding #{repo}##{pr} due to --exclude")
+ @loog.debug("Excluding #{repo} due to --exclude")
return false
end
true
end
end