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,
  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)


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

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)


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

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)


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

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