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

Version Path
site_hook-1.0.10 lib/site_hook/log.rb
site_hook-1.0.9 lib/site_hook/log.rb
site_hook-1.0.8 lib/site_hook/log.rb
site_hook-1.0.7 lib/site_hook/log.rb
site_hook-1.0.6 lib/site_hook/log.rb
site_hook-1.0.5 lib/site_hook/log.rb
site_hook-1.0.4 lib/site_hook/log.rb
site_hook-1.0.3 lib/site_hook/log.rb
site_hook-1.0.2 lib/site_hook/log.rb
site_hook-1.0.1 lib/site_hook/log.rb
site_hook-1.0.0 lib/site_hook/log.rb
site_hook-0.9.20 lib/site_hook/log.rb
site_hook-0.9.19 lib/site_hook/log.rb
site_hook-0.9.16 lib/site_hook/log.rb
site_hook-0.9.15 lib/site_hook/log.rb
site_hook-0.9.14 lib/site_hook/log.rb
site_hook-0.9.12 lib/site_hook/log.rb
site_hook-0.9.11 lib/site_hook/log.rb
site_hook-0.9.10 lib/site_hook/log.rb
site_hook-0.9.9 lib/site_hook/log.rb