Class: Central::Devtools::Project

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

Defined Under Namespace

Classes: Initializer

Constant Summary collapse

CONFIGS =
{
  container: Config::Container,
  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)


38
39
40
41
42
43
# File 'lib/central/devtools/project.rb', line 38

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)


28
29
30
# File 'lib/central/devtools/project.rb', line 28

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)


50
51
52
53
# File 'lib/central/devtools/project.rb', line 50

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