Class: Lolcommits::Tranzlate
- Defined in:
- lib/lolcommits/plugins/tranzlate.rb
Instance Attribute Summary
Attributes inherited from Plugin
#default, #name, #options, #runner
Instance Method Summary collapse
-
#initialize(runner) ⇒ Tranzlate
constructor
A new instance of Tranzlate.
- #run ⇒ Object
Methods inherited from Plugin
#configuration, #execute, #is_enabled?, #plugdebug
Constructor Details
#initialize(runner) ⇒ Tranzlate
Returns a new instance of Tranzlate.
5 6 7 8 9 10 |
# File 'lib/lolcommits/plugins/tranzlate.rb', line 5 def initialize(runner) super self.name = 'tranzlate' self.default = false end |
Instance Method Details
#run ⇒ Object
12 13 14 15 16 |
# File 'lib/lolcommits/plugins/tranzlate.rb', line 12 def run plugdebug "Commit message before: #{self.runner.message}" self.runner. = self.runner..tranzlate plugdebug "Commit message after: #{self.runner.message}" end |