Class: Develry::Project
- Inherits:
-
Object
- Object
- Develry::Project
- Defined in:
- lib/develry/project.rb,
lib/develry/project/initializer.rb,
lib/develry/project/initializer/rake.rb,
lib/develry/project/initializer/rspec.rb
Overview
The project develry supports
Defined Under Namespace
Classes: Initializer
Instance Attribute Summary collapse
-
#config_dir ⇒ Pathname
readonly
private
Return config directory.
-
#default_config_path ⇒ Pathname
readonly
private
The default config path.
-
#develry ⇒ Config::Develry
readonly
private
The develry configuration.
-
#file_pattern ⇒ Pathname
readonly
private
The Ruby file pattern.
-
#flay ⇒ Config::Flay
readonly
private
The flay configuration.
-
#flog ⇒ Config::Flog
readonly
private
The flog configuration.
-
#lib_dir ⇒ Pathname
readonly
private
The lib directory.
-
#mutant ⇒ Config::Mutant
readonly
private
The mutant configuration.
-
#reek ⇒ Config::Reek
readonly
private
The reek configuration.
-
#root ⇒ Pathname
readonly
private
Return project root.
-
#rubocop ⇒ Config::Rubocop
readonly
private
The rubocop configuration.
-
#shared_gemfile_path ⇒ Pathname
readonly
private
The shared gemfile path.
-
#spec_root ⇒ Pathname
readonly
private
The spec root.
-
#unit_test_timeout ⇒ Numeric
readonly
private
The unit test timeout.
-
#yardstick ⇒ Config::Yardstick
readonly
private
The yardstick configuration.
Instance Method Summary collapse
-
#initialize(root) ⇒ undefined
constructor
private
Initialize object.
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
122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 |
# 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 |
Instance Attribute Details
#config_dir ⇒ Pathname (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
105 106 107 |
# File 'lib/develry/project.rb', line 105 def config_dir @config_dir end |
#default_config_path ⇒ Pathname (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
77 78 79 |
# File 'lib/develry/project.rb', line 77 def default_config_path @default_config_path end |
#develry ⇒ Config::Develry (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 develry configuration
55 56 57 |
# File 'lib/develry/project.rb', line 55 def develry @develry end |
#file_pattern ⇒ Pathname (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
91 92 93 |
# File 'lib/develry/project.rb', line 91 def file_pattern @file_pattern end |
#flay ⇒ Config::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
41 42 43 |
# File 'lib/develry/project.rb', line 41 def flay @flay end |
#flog ⇒ Config::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
27 28 29 |
# File 'lib/develry/project.rb', line 27 def flog @flog end |
#lib_dir ⇒ Pathname (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
84 85 86 |
# File 'lib/develry/project.rb', line 84 def lib_dir @lib_dir end |
#mutant ⇒ Config::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
48 49 50 |
# File 'lib/develry/project.rb', line 48 def mutant @mutant end |
#reek ⇒ Config::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
13 14 15 |
# File 'lib/develry/project.rb', line 13 def reek @reek end |
#root ⇒ Pathname (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
63 64 65 |
# File 'lib/develry/project.rb', line 63 def root @root end |
#rubocop ⇒ Config::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
20 21 22 |
# File 'lib/develry/project.rb', line 20 def rubocop @rubocop end |
#shared_gemfile_path ⇒ Pathname (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 shared gemfile path
70 71 72 |
# File 'lib/develry/project.rb', line 70 def shared_gemfile_path @shared_gemfile_path end |
#spec_root ⇒ Pathname (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
98 99 100 |
# File 'lib/develry/project.rb', line 98 def spec_root @spec_root end |
#unit_test_timeout ⇒ Numeric (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
112 113 114 |
# File 'lib/develry/project.rb', line 112 def unit_test_timeout @unit_test_timeout end |
#yardstick ⇒ Config::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
34 35 36 |
# File 'lib/develry/project.rb', line 34 def yardstick @yardstick end |