lib/stove.rb in stove-7.1.5 vs lib/stove.rb in stove-7.1.6

- old
+ new

@@ -1,6 +1,5 @@ -require 'logify' require 'pathname' module Stove autoload :Artifactory, 'stove/artifactory' autoload :Supermarket, 'stove/supermarket' @@ -13,10 +12,11 @@ autoload :Packager, 'stove/packager' autoload :Runner, 'stove/runner' autoload :Util, 'stove/util' autoload :Validator, 'stove/validator' autoload :VERSION, 'stove/version' + autoload :Log, 'stove/log' module Middleware autoload :ChefAuthentication, 'stove/middlewares/chef_authentication' autoload :Exceptions, 'stove/middlewares/exceptions' end @@ -51,11 +51,11 @@ # USER_AGENT = "Stove #{VERSION}" class << self # - # The source root of the ChefAPI gem. This is useful when requiring files + # The source root of the Stove gem. This is useful when requiring files # that are relative to the root of the project. # # @return [Pathname] # def root @@ -64,24 +64,24 @@ # # Set the log level. # # @example Set the log level to :info - # ChefAPI.log_level = :info + # Stove.log_level = :info # # @param [#to_sym] level # the log level to set # - def log_level=(level) - Logify.level = level.to_sym + def log_level=(lev) + Stove::Log.level = lev.to_sym end # # Get the current log level. # # @return [Symbol] # def log_level - Logify.level + Stove::Log.level end end end