class Develry::Project

The project develry supports

Attributes

config_dir[R]

Return config directory

@return [Pathname]

@api private

default_config_path[R]

The default config path

@return [Pathname]

@api private

develry[R]

The develry configuration

@return [Config::Develry]

@api private

file_pattern[R]

The Ruby file pattern

@return [Pathname]

@api private

flay[R]

The flay configuration

@return [Config::Flay]

@api private

flog[R]

The flog configuration

@return [Config::Flog]

@api private

lib_dir[R]

The lib directory

@return [Pathname]

@api private

mutant[R]

The mutant configuration

@return [Config::Mutant]

@api private

reek[R]

The reek configuration

@return [Config::Reek]

@api private

root[R]

Return project root

@return [Pathname]

@api private

rubocop[R]

The rubocop configuration

@return [Config::Rubocop]

@api private

shared_gemfile_path[R]

The shared gemfile path

@return [Pathname]

@api private

spec_root[R]

The spec root

@return [Pathname]

@api private

unit_test_timeout[R]

The unit test timeout

@return [Numeric]

@api private

yardstick[R]

The yardstick configuration

@return [Config::Yardstick]

@api private

Public Class Methods

new(root) click to toggle source

Initialize object

@param [Pathname] root

@return [undefined]

@api private

# File lib/develry/project.rb, line 122
def initialize(root)
  @root = root

  @shared_gemfile_path = @root.join(GEMFILE_NAME).freeze
  @default_config_path = @root.join(DEFAULT_CONFIG_DIR_NAME).freeze
  @lib_dir             = @root.join(LIB_DIRECTORY_NAME).freeze
  @spec_root           = @root.join(SPEC_DIRECTORY_NAME).freeze
  @file_pattern        = @lib_dir.join(RB_FILE_PATTERN).freeze
  @config_dir          = @default_config_path

  @reek      = Config::Reek.new(self)
  @rubocop   = Config::Rubocop.new(self)
  @flog      = Config::Flog.new(self)
  @yardstick = Config::Yardstick.new(self)
  @flay      = Config::Flay.new(self)
  @mutant    = Config::Mutant.new(self)
  @develry  = Config::Develry.new(self)

  @unit_test_timeout = @develry.unit_test_timeout
end