Add bin and edit workflow
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 9s

This commit is contained in:
2026-09-16 13:11:16 -06:00
parent c8ac4fcae5
commit 4cee170d66
17576 changed files with 895740 additions and 2 deletions
@@ -0,0 +1,41 @@
module Yell #:nodoc:
module Helpers #:nodoc:
module Adapter #:nodoc:
# Define an adapter to be used for logging.
#
# @example Standard adapter
# adapter :file
#
# @example Standard adapter with filename
# adapter :file, 'development.log'
#
# # Alternative notation for filename in options
# adapter :file, filename: 'developent.log'
#
# @example Standard adapter with filename and additional options
# adapter :file, 'development.log', level: :warn
#
# @example Set the adapter directly from an adapter instance
# adapter Yell::Adapter::File.new
#
# @param [Symbol] type The type of the adapter, may be `:file` or `:datefile` (default `:file`)
# @return [Yell::Adapter] The instance
# @raise [Yell::NoSuchAdapter] Will be thrown when the adapter is not defined
def adapter( type = :file, *args, &block )
adapters.add(type, *args, &block)
end
def adapters
@__adapters__
end
private
def reset!
@__adapters__ = Yell::Adapters::Collection.new(@options)
super
end
end
end
end