redmine-git-remote/init.rb

20 lines
637 B
Ruby
Raw Normal View History

2014-11-14 22:17:52 +01:00
require 'redmine'
2014-11-27 21:48:29 +01:00
# TODO: why isn't this autoloaded?
# NB: at this point, $PATH only contains {PLUGINS}/lib and app/models, app/controllers
# but not {PLUGINS}/app/models. Maybe those get added later?
require File.dirname(__FILE__) + '/app/models/repository/git_fetch'
require_dependency "repository_fetch/repositories_helper_patch"
Redmine::Scm::Base.add "GitFetch"
Redmine::Plugin.register :redmine_repository_fetch do
2014-11-14 22:17:52 +01:00
name 'Repository Fetch'
author 'Alex Dergachev'
url 'https://github.com/dergachev/redmine_repository_fetch'
description 'Automatically clone and fetch referenced repositories'
version '0.0.1'
end
2014-11-27 21:48:29 +01:00