Class: Devtools::Project

Inherits:
Object
  • Object
show all
Defined in:
lib/devtools/project.rb,
lib/devtools/project/initializer.rb,
lib/devtools/project/initializer/rake.rb,
lib/devtools/project/initializer/rspec.rb

Overview

The project devtools supports

Defined Under Namespace

Classes: Initializer

Constant Summary collapse

CONFIGS =
{
  devtools:  Config::Devtools,
  flay:      Config::Flay,
  flog:      Config::Flog,
  reek:      Config::Reek,
  mutant:    Config::Mutant,
  rubocop:   Config::Rubocop,
  yardstick: Config::Yardstick
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(root) ⇒ undefined

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Initialize object

Parameters:

  • root (Pathname)


36
37
38
39
40
41
# File 'lib/devtools/project.rb', line 36

def initialize(root)
  super(root)

  initialize_environment
  initialize_configs
end

Instance Attribute Details

#spec_rootPathname (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

The spec root

Returns:

  • (Pathname)


26
27
28
# File 'lib/devtools/project.rb', line 26

def spec_root
  @spec_root
end

Instance Method Details

#init_rspecself

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Init rspec

Returns:

  • (self)


48
49
50
51
# File 'lib/devtools/project.rb', line 48

def init_rspec
  Initializer::Rspec.call(self)
  self
end