Class: Denmark::Plugins
- Inherits:
-
Object
- Object
- Denmark::Plugins
- Defined in:
- lib/denmark/plugins.rb
Overview
metrics class
Defined Under Namespace
Classes: Issues, Metadata, PullRequests, Timeline
Instance Method Summary collapse
-
#initialize(options) ⇒ Plugins
constructor
A new instance of Plugins.
- #list ⇒ Object
- #run(mod, repo) ⇒ Object
Constructor Details
#initialize(options) ⇒ Plugins
Returns a new instance of Plugins.
9 10 11 12 13 14 15 16 17 |
# File 'lib/denmark/plugins.rb', line 9 def initialize() if [:enable] disable = Denmark::Plugins.plugins.keys - [:enable].map(&:to_sym) [:disable] ||= Array.new [:disable].concat disable end Denmark::Plugins.disregard_plugins(*[:disable]) Denmark::Plugins.initialize_plugins end |
Instance Method Details
#list ⇒ Object
19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/denmark/plugins.rb', line 19 def list str = " Available smell test plugins\n" str += " ===============================\n\n" Denmark::Plugins.plugins.each do |name, plugin| str += name.to_s str += "\n--------\n" str += plugin.description.strip str += "\n\n" end str end |