Sha256: 7c79ce9912bc2b1b93c25cd721428f8c2803f3b1dc855b74b4a9a470de31cb9f
Contents?: true
Size: 1.4 KB
Versions: 18
Compression:
Stored size: 1.4 KB
Contents
module Devtools # The project devtools supports class Project include Concord.new(:root) CONFIGS = { devtools: Config::Devtools, flay: Config::Flay, flog: Config::Flog, reek: Config::Reek, mutant: Config::Mutant, rubocop: Config::Rubocop, yardstick: Config::Yardstick }.freeze private_constant(*constants(false)) attr_reader(*CONFIGS.keys) # The spec root # # @return [Pathname] # # @api private attr_reader :spec_root # Initialize object # # @param [Pathname] root # # @return [undefined] # # @api private # def initialize(root) super(root) initialize_environment initialize_configs end # Init rspec # # @return [self] # # @api private def init_rspec Initializer::Rspec.call(self) self end private # Initialize environment # # @return [undefined] # # @api private # def initialize_environment @spec_root = root.join(SPEC_DIRECTORY_NAME) end # Initialize configs # # @return [undefined] # # @api private # def initialize_configs config_dir = root.join(DEFAULT_CONFIG_DIR_NAME) CONFIGS.each do |name, klass| instance_variable_set(:"@#{name}", klass.new(config_dir)) end end end # class Project end # module Devtools
Version data entries
18 entries across 18 versions & 1 rubygems