forked from dergachev/redmine_git_remote
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.rb
More file actions
22 lines (17 loc) · 706 Bytes
/
init.rb
File metadata and controls
22 lines (17 loc) · 706 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
require 'redmine'
$LOAD_PATH.unshift File.join(File.dirname(__FILE__), 'lib')
require 'redmine_git_remote/repositories_helper_patch'
Redmine::Scm::Base.add "GitRemote"
Redmine::Plugin.register :redmine_git_remote do
name 'Redmine Git Remote'
author 'Alex Dergachev'
url 'https://github.com/dergachev/redmine_git_remote'
description 'Automatically clone and fetch remote git repositories'
version '0.0.2'
settings :default => {
'git_remote_repo_clone_path' => Pathname.new(__FILE__).join("../").realpath.to_s + "/repos",
}, :partial => 'settings/git_remote_settings'
end
ActiveSupport::Reloader.to_prepare do
RepositoriesHelper.include RedmineGitRemote::RepositoriesHelperPatch
end