Class: Docquet::RakeTask

Inherits:
Rake::TaskLib
  • Object
show all
Defined in:
lib/docquet/rake_task.rb

Instance Method Summary collapse

Constructor Details

#initializeRakeTask

Returns a new instance of RakeTask.



33
34
35
36
37
38
39
40
41
42
43
44
# File 'lib/docquet/rake_task.rb', line 33

def initialize
  super
  @inflector = Inflector.instance

  @plugin_gem_names = PluginDetector.detect_plugin_gem_names
  departments = RuboCop::Cop::Registry.global.map {|c| c.department.to_s }
  departments.sort!
  departments.uniq!
  @departments = departments

  define_tasks
end