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

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)


115
116
117
118
119
120
121
122
# File 'lib/devtools/project.rb', line 115

def initialize(root)
  @root = root

  initialize_environment
  initialize_configs

  @unit_test_timeout = @devtools.unit_test_timeout
end

Instance Attribute Details

#config_dirPathname (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.

Return config directory

Returns:

  • (Pathname)


98
99
100
# File 'lib/devtools/project.rb', line 98

def config_dir
  @config_dir
end

#default_config_pathPathname (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 default config path

Returns:

  • (Pathname)


70
71
72
# File 'lib/devtools/project.rb', line 70

def default_config_path
  @default_config_path
end

#devtoolsConfig::Devtools (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 devtools configuration

Returns:



55
56
57
# File 'lib/devtools/project.rb', line 55

def devtools
  @devtools
end

#file_patternPathname (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 Ruby file pattern

Returns:

  • (Pathname)


84
85
86
# File 'lib/devtools/project.rb', line 84

def file_pattern
  @file_pattern
end

#flayConfig::Flay (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 flay configuration

Returns:



41
42
43
# File 'lib/devtools/project.rb', line 41

def flay
  @flay
end

#flogConfig::Flog (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 flog configuration

Returns:



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

def flog
  @flog
end

#lib_dirPathname (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 lib directory

Returns:

  • (Pathname)


77
78
79
# File 'lib/devtools/project.rb', line 77

def lib_dir
  @lib_dir
end

#mutantConfig::Mutant (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 mutant configuration

Returns:



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

def mutant
  @mutant
end

#reekConfig::Reek (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 reek configuration

Returns:



13
14
15
# File 'lib/devtools/project.rb', line 13

def reek
  @reek
end

#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.

Return project root

Returns:

  • (Pathname)


63
64
65
# File 'lib/devtools/project.rb', line 63

def root
  @root
end

#rubocopConfig::Rubocop (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 rubocop configuration

Returns:



20
21
22
# File 'lib/devtools/project.rb', line 20

def rubocop
  @rubocop
end

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


91
92
93
# File 'lib/devtools/project.rb', line 91

def spec_root
  @spec_root
end

#unit_test_timeoutNumeric (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 unit test timeout

Returns:

  • (Numeric)


105
106
107
# File 'lib/devtools/project.rb', line 105

def unit_test_timeout
  @unit_test_timeout
end

#yardstickConfig::Yardstick (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 yardstick configuration

Returns:



34
35
36
# File 'lib/devtools/project.rb', line 34

def yardstick
  @yardstick
end