Module: Central::Devtools
- Defined in:
- lib/central/devtools.rb,
lib/central/devtools.rb,
lib/central/devtools/flay.rb,
lib/central/devtools/config.rb,
lib/central/devtools/project.rb,
lib/central/devtools/version.rb,
lib/central/devtools/rake/flay.rb,
lib/central/devtools/project/initializer.rb,
lib/central/devtools/project/initializer/rake.rb,
lib/central/devtools/project/initializer/rspec.rb
Overview
Self initialization
Defined Under Namespace
Modules: Flay, Rake Classes: Config, Project
Constant Summary collapse
- ROOT =
Pathname.new(__FILE__).parent.parent.parent.freeze
- PROJECT_ROOT =
Pathname.pwd.freeze
- SHARED_PATH =
ROOT.join('shared').freeze
- SHARED_SPEC_PATH =
SHARED_PATH.join('spec').freeze
- DEFAULT_CONFIG_PATH =
ROOT.join('default/config').freeze
- RAKE_FILES_GLOB =
ROOT.join('shared/tasks/**/*.rake').to_s.freeze
- LIB_DIRECTORY_NAME =
'lib'.freeze
- SPEC_DIRECTORY_NAME =
'spec'.freeze
- RAKE_FILE_NAME =
'Rakefile'.freeze
- SHARED_SPEC_PATTERN =
'{shared,support}/**/*.rb'.freeze
- UNIT_TEST_PATH_REGEXP =
%r{\bspec/unit/}- DEFAULT_CONFIG_DIR_NAME =
'config'.freeze
- PROJECT =
Project.new(PROJECT_ROOT)
- VERSION =
'0.8.4'.freeze
Class Method Summary collapse
-
.init ⇒ self
Initialize project and load tasks.
-
.notify_metric_violation(message) ⇒ undefined
private
Abort with message when a metric violation occurs.
-
.project ⇒ Project
private
Return project.
-
.root ⇒ Pathname
private
Return devtools root path.
Class Method Details
.init ⇒ self
Initialize project and load tasks. This should only be called from an $application_root/Rakefile.
54 55 56 57 |
# File 'lib/central/devtools.rb', line 54 def self.init Project::Initializer::Rake.call self end |
.notify_metric_violation(message) ⇒ 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.
Abort with message when a metric violation occurs.
45 46 47 |
# File 'lib/central/devtools.rb', line 45 def self.notify_metric_violation() abort() end |
.project ⇒ Project
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.
71 72 73 |
# File 'lib/central/devtools.rb', line 71 def self.project PROJECT end |
.root ⇒ Pathname
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 devtools root path.
63 64 65 |
# File 'lib/central/devtools.rb', line 63 def self.root ROOT end |