/init.rb
https://bitbucket.org/susansalkeld/redmine-bitbucket-git · Ruby · 14 lines · 12 code · 2 blank · 0 comment · 0 complexity · f7e014d8f49f80ce17b89aa468a49156 MD5 · raw file
- require 'redmine'
- Redmine::Plugin.register :redmine_bitbucketgit_hook do
- name 'Redmine Bitbucket GIT Hook plugin'
- author 'Bastian Bringenberg'
- 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.'
- version '0.0.1'
- settings(:default => {
- :git_dir => ''
- },
- :partial => 'settings/bitbucketgit_hook_setting')
- end
- ActiveRecord::Base.observers << :repository_observer