Files
news.gitea.happylizard.me/bin/gems/yell-2.2.2/lib/yell/helpers/silencer.rb
T
pizza2d1 4cee170d66
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 9s
Add bin and edit workflow
2026-09-16 13:11:16 -06:00

31 lines
453 B
Ruby

module Yell #:nodoc:
module Helpers #:nodoc:
module Silencer
# Set the silence pattern
def silence( *patterns )
silencer.add(*patterns)
end
def silencer
@__silencer__
end
private
def reset!
@__silencer__ = Yell::Silencer.new
super
end
def silence!( *messages )
@__silencer__.silence!(*messages) if silencer.silence?
end
end
end
end