diff options
| author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-02-29 22:38:24 +0200 |
|---|---|---|
| committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-02-29 22:38:24 +0200 |
| commit | bb164ebf1bd672527a76a6699427cbec728d638b (patch) | |
| tree | db078b004fd285cb28af3fc801ea552b5ac83456 /lib/tasks | |
| parent | 796784c7c8d385b72cd1e4b5a8f0885d630586fb (diff) | |
| download | gitlab-ce-bb164ebf1bd672527a76a6699427cbec728d638b.tar.gz | |
Send author to post hook. Display push activity to dashboard
Diffstat (limited to 'lib/tasks')
| -rw-r--r-- | lib/tasks/update_hooks.rake | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/tasks/update_hooks.rake b/lib/tasks/update_hooks.rake new file mode 100644 index 00000000000..472023c8f15 --- /dev/null +++ b/lib/tasks/update_hooks.rake @@ -0,0 +1,15 @@ +desc "Rewrite hooks for repos" +task :update_hooks => :environment do + puts "Starting Projects" + Project.find_each(:batch_size => 100) do |project| + begin + if project.commit + project.repository.write_hooks + print ".".green + end + rescue Exception => e + print e.message.red + end + end + puts "\nDone with projects" +end |
