Class: RedminePluginSupport::MetricsTask

Inherits:
GeneralTask
  • Object
show all
Defined in:
lib/redmine_plugin_support/metrics_task.rb

Instance Attribute Summary

Attributes inherited from GeneralTask

#name

Instance Method Summary collapse

Methods inherited from GeneralTask

#initialize

Constructor Details

This class inherits a constructor from RedminePluginSupport::GeneralTask

Instance Method Details

#defineObject



3
4
5
6
7
8
9
10
11
12
# File 'lib/redmine_plugin_support/metrics_task.rb', line 3

def define
  require 'metric_fu'

  namespace :metrics do
    desc "Check the code against the rails_best_practices"
    task :rails_best_practices do
      system("rails_best_practices #{RedmineHelper.plugin_root}")
    end
  end
end