lib/stove.rb in stove-2.0.0 vs lib/stove.rb in stove-3.0.0
- old
+ new
@@ -1,52 +1,38 @@
require 'logify'
require 'pathname'
module Stove
- autoload :Config, 'stove/config'
autoload :Community, 'stove/community'
+ autoload :Config, 'stove/config'
autoload :Cookbook, 'stove/cookbook'
autoload :Cli, 'stove/cli'
autoload :Error, 'stove/error'
autoload :Filter, 'stove/filter'
- autoload :JIRA, 'stove/jira'
autoload :Mash, 'stove/mash'
autoload :Packager, 'stove/packager'
autoload :Runner, 'stove/runner'
autoload :Util, 'stove/util'
autoload :Validator, 'stove/validator'
autoload :VERSION, 'stove/version'
- module Action
- autoload :Base, 'stove/actions/base'
- autoload :Bump, 'stove/actions/bump'
- autoload :Changelog, 'stove/actions/changelog'
- autoload :Dev, 'stove/actions/dev'
- autoload :Finish, 'stove/actions/finish'
- autoload :Start, 'stove/actions/start'
- autoload :Upload, 'stove/actions/upload'
- end
-
module Middleware
autoload :ChefAuthentication, 'stove/middlewares/chef_authentication'
autoload :Exceptions, 'stove/middlewares/exceptions'
end
module Mixin
- autoload :Filterable, 'stove/mixins/filterable'
autoload :Insideable, 'stove/mixins/insideable'
autoload :Instanceable, 'stove/mixins/instanceable'
autoload :Optionable, 'stove/mixins/optionable'
autoload :Validatable, 'stove/mixins/validatable'
end
module Plugin
autoload :Base, 'stove/plugins/base'
autoload :Community, 'stove/plugins/community'
autoload :Git, 'stove/plugins/git'
- autoload :GitHub, 'stove/plugins/github'
- autoload :JIRA, 'stove/plugins/jira'
end
#
# A constant to represent an unset value. +nil+ is too generic and doesn't
# allow users to specify a value as +nil+. Using this constant, we can
@@ -78,15 +64,15 @@
# Set the log level.
#
# @example Set the log level to :info
# ChefAPI.log_level = :info
#
- # @param [Symbol] level
+ # @param [#to_sym] level
# the log level to set
#
def log_level=(level)
- Logify.level = level
+ Logify.level = level.to_sym
end
#
# Get the current log level.
#
@@ -95,9 +81,5 @@
def log_level
Logify.level
end
end
end
-
-require 'i18n'
-I18n.enforce_available_locales = true
-I18n.load_path << Dir[Stove.root.join('locales', '*.yml').to_s]