Class: Lolcommits::Tranzlate

Inherits:
Plugin
  • Object
show all
Defined in:
lib/lolcommits/plugins/tranzlate.rb

Instance Attribute Summary

Attributes inherited from Plugin

#default, #name, #options, #runner

Instance Method Summary collapse

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

#runObject



12
13
14
15
16
# File 'lib/lolcommits/plugins/tranzlate.rb', line 12

def run
  plugdebug "Commit message before: #{self.runner.message}"
  self.runner.message = self.runner.message.tranzlate
  plugdebug "Commit message after: #{self.runner.message}"
end