Skip to content

Commit

Permalink
Add feature : #303
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Dec 23, 2014
1 parent c8de4d6 commit ea8b3d8
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions lib/tasks/redmine_git_hosting.rake
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,31 @@ namespace :redmine_git_hosting do
end


desc "Install/update Gitolite hooks"
task :install_hook_files => [:environment] do
puts ""
puts "Installing/updating Gitolite hooks"
puts "----------------------------------"
puts "Results :"
result = RedmineGitolite::HookManager.check_install!
puts YAML::dump(result)
puts "Done!"
end


desc "Install/update Gitolite hook parameters"
task :install_hook_parameters => [:environment] do
puts ""
puts "Installing/updating Gitolite hook parameters"
puts "----------------------------------"
puts "Results :"
result = RedmineGitolite::HookManager.update_hook_params!
puts YAML::dump(result)
puts "Done!"
end

task :install_gitolite_hooks => [ :install_hook_files, :install_hook_parameters ]

desc "Show library version"
task :version do
puts "Redmine Git Hosting #{version("plugins/redmine_git_hosting/init.rb")}"
Expand Down

0 comments on commit ea8b3d8

Please sign in to comment.