Sha256: b47839a741ef0ac1f8618736c974aaca8dbf72d21fd4c1535ad82ba6bcd70b25
Contents?: true
Size: 637 Bytes
Versions: 46
Compression:
Stored size: 637 Bytes
Contents
require 'site_hook/configs/log_levels' module SiteHook autoload :Paths, 'site_hook/paths' autoload :Config, 'site_hook/config' ## # Logs # Give logs related methods # module Logs module_function DEFAULT = { 'hook' => 'info', 'build' => 'info', 'git' => 'info', 'app' => 'info' } # @return [Hash] the log levels def self.log_levels puts SiteHook::Configs::LogLevels.methods log_level = SiteHook::Configs::LogLevels if log_level log_level end rescue KeyError DEFAULT rescue Errno::ENOENT DEFAULT end end end
Version data entries
46 entries across 46 versions & 1 rubygems