redmine-git-remote/init.rb

19 lines
626 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?
2014-11-27 22:07:35 +01:00
require File.dirname(__FILE__) + '/app/models/repository/git_remote'
2014-11-27 21:48:29 +01:00
require_dependency "repository_fetch/repositories_helper_patch"
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-14 22:17:52 +01:00
name 'Repository Fetch'
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'
2014-11-14 22:17:52 +01:00
version '0.0.1'
end