-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathinit.rb
More file actions
27 lines (19 loc) · 685 Bytes
/
init.rb
File metadata and controls
27 lines (19 loc) · 685 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
require 'redmine'
Rails.configuration.to_prepare do
require_dependency 'create_git/projects_controller_patch'
end
Redmine::Plugin.register :redmine_create_git do
name 'Redmine Create Git plugin'
author 'Martin DENIZET'
url 'https://github.com/martin-denizet/redmine_create_git'
author_url 'http://martin-denizet.com'
description 'Ease the creation of Git repositories when using Git Smart HTTP'
version '0.2.0'
requires_redmine :version_or_higher => '2.0.0'
settings :default => {
:gitignore => '',
:repo_path => File.expand_path('../repos/git/', Rails.root),
:repo_url => '',
:branches => ''
}, :partial => 'settings/create_git'
end