forked from voondo/redmine_git_server
-
Notifications
You must be signed in to change notification settings - Fork 1
/
init.rb
20 lines (18 loc) · 807 Bytes
/
init.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Redmine::Plugin.register :redmine_git_server do
name 'Redmine Git Server plugin'
author 'Romain Lalaut'
description 'This is a plugin for Redmine allowing to serve the git repositories through the http connection'
url 'https://github.com/voondo/redmine_git_server'
version '0.5'
author_url 'https://github.com/voondo'
project_module :git_server do
permission :enable_git_server, {}
end
end
require_dependency File.dirname(__FILE__) + '/lib/redmine_git_server/hooks'
app = Rails.application
app.config.to_prepare do
plugin = Redmine::Plugin.find(:redmine_git_server)
plugin.requires_redmine_plugin :redmine_base_rspec, :version_or_higher => '0.0.4' if Rails.env.test?
require_dependency File.dirname(__FILE__) + '/lib/redmine_git_server/patches/repositories_controller_patch'
end