redmine-git-remote/init.rb
flozzone 25180d0909 Make repository clone path configurable via settings.
Signed-off-by: flozzone <flozzone@gmail.com>
2020-05-08 18:25:34 +02:00

17 lines
542 B
Ruby

require 'redmine'
require_dependency "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.1'
settings :default => {
'git_remote_repo_clone_path' => Pathname.new(__FILE__).join("../").realpath.to_s + "/repos",
}, :partial => 'settings/git_remote_settings'
end