/init.rb

https://bitbucket.org/susansalkeld/redmine-bitbucket-git · Ruby · 14 lines · 12 code · 2 blank · 0 comment · 0 complexity · f7e014d8f49f80ce17b89aa468a49156 MD5 · raw file

  1. require 'redmine'
  2. Redmine::Plugin.register :redmine_bitbucketgit_hook do
  3. name 'Redmine Bitbucket GIT Hook plugin'
  4. author 'Bastian Bringenberg'
  5. description 'This plugin allows your Redmine installation to receive Bitbucket GIT post-receive notifications. Based on bitbucket plugin by Alessio Caiazza and github work by Jakob Skjerning.'
  6. version '0.0.1'
  7. settings(:default => {
  8. :git_dir => ''
  9. },
  10. :partial => 'settings/bitbucketgit_hook_setting')
  11. end
  12. ActiveRecord::Base.observers << :repository_observer