redmine-git-remote/init.rb

22 lines
600 B
Ruby
Raw Normal View History

2014-11-27 21:48:29 +01:00
2014-11-27 22:07:35 +01:00
Redmine::Scm::Base.add "GitRemote"
2014-11-27 21:48:29 +01:00
2014-11-27 22:07:35 +01:00
Redmine::Plugin.register :redmine_git_remote do
2014-11-28 22:35:33 +01:00
name 'Redmine Git Remote'
2014-11-14 22:17:52 +01:00
author 'Alex Dergachev'
2014-11-27 22:07:35 +01:00
url 'https://github.com/dergachev/redmine_git_remote'
description 'Automatically clone and fetch remote git repositories'
version '0.0.2'
2023-02-02 15:44:24 +01:00
requires_redmine version_or_higher: '5.0.0'
settings partial: 'settings/git_remote_settings',
default: {
'git_remote_repo_clone_path' => Pathname.new(__FILE__).join("../").realpath.to_s + "/repos"
}
2014-11-14 22:17:52 +01:00
end
2023-02-02 15:44:24 +01:00
unless Redmine::Plugin.installed?(:easy_extensions)
require_relative 'after_init'
end