From a54a90188b03730c998b7e5a91c85611dfe5e311 Mon Sep 17 00:00:00 2001 From: Valeriy Sizov Date: Tue, 9 Oct 2012 14:59:58 +0300 Subject: [PATCH] remove unnecessary task --- lib/tasks/gitlab/write_hook.rake | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 lib/tasks/gitlab/write_hook.rake diff --git a/lib/tasks/gitlab/write_hook.rake b/lib/tasks/gitlab/write_hook.rake deleted file mode 100644 index ccc96aad..00000000 --- a/lib/tasks/gitlab/write_hook.rake +++ /dev/null @@ -1,21 +0,0 @@ -namespace :gitlab do - namespace :gitolite do - desc "GITLAB | Write GitLab hook for gitolite" - task :write_hooks => :environment do - gitolite_hooks_path = File.join(Gitlab.config.git_hooks_path, "common") - gitlab_hooks_path = Rails.root.join("lib", "hooks") - gitlab_hook_files = ['post-receive'] - - gitlab_hook_files.each do |file_name| - source = File.join(gitlab_hooks_path, file_name) - dest = File.join(gitolite_hooks_path, file_name) - - puts "sudo -u root cp #{source} #{dest}".yellow - `sudo -u root cp #{source} #{dest}` - - puts "sudo -u root chown git:git #{dest}".yellow - `sudo -u root chown git:git #{dest}` - end - end - end -end