Module: Koality
- Defined in:
- lib/koality.rb,
lib/koality/options.rb,
lib/koality/version.rb,
lib/koality/rake_task.rb,
lib/koality/runner/cane.rb,
lib/koality/reporter/base.rb,
lib/koality/reporter/cane.rb,
lib/koality/simplecov/formatter.rb,
lib/koality/runner/rails_best_practices.rb,
lib/koality/reporter/rails_best_practices.rb
Defined Under Namespace
Modules: Reporter, Runner, SimpleCov
Classes: Options, RakeTask
Constant Summary
collapse
- VERSION =
"1.0.1"
Class Method Summary
collapse
Class Method Details
.options ⇒ Object
31
32
33
|
# File 'lib/koality.rb', line 31
def options
@options ||= Koality::Options.new
end
|
.run ⇒ Object
12
13
14
15
16
17
18
19
|
# File 'lib/koality.rb', line 12
def run
setup_environment
run_rails_bp if options.rails_bp_enabled?
success = run_cane
abort if options[:abort_on_failure] && !success
end
|
.run_cane ⇒ Object
26
27
28
29
|
# File 'lib/koality.rb', line 26
def run_cane
cane = Koality::Runner::Cane.new(options)
cane.run
end
|