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.30 lib/site_hook/log.rb
site_hook-1.0.29 lib/site_hook/log.rb
site_hook-1.0.28 lib/site_hook/log.rb
site_hook-1.0.27 lib/site_hook/log.rb
site_hook-1.0.26 lib/site_hook/log.rb
site_hook-1.0.25 lib/site_hook/log.rb
site_hook-1.0.24 lib/site_hook/log.rb
site_hook-1.0.23 lib/site_hook/log.rb
site_hook-1.0.22 lib/site_hook/log.rb
site_hook-1.0.21 lib/site_hook/log.rb
site_hook-1.0.20 lib/site_hook/log.rb
site_hook-1.0.19 lib/site_hook/log.rb
site_hook-1.0.18 lib/site_hook/log.rb
site_hook-1.0.17 lib/site_hook/log.rb
site_hook-1.0.16 lib/site_hook/log.rb
site_hook-1.0.15 lib/site_hook/log.rb
site_hook-1.0.14 lib/site_hook/log.rb
site_hook-1.0.13 lib/site_hook/log.rb
site_hook-1.0.12 lib/site_hook/log.rb
site_hook-1.0.11 lib/site_hook/log.rb