Adds rake tasks to run gitorious health diagnostics from the CLI
authorThomas Kjeldahl Nilsson <thomas@kjeldahlnilsson.net>
Tue, 31 Jul 2012 09:49:54 +0000 (11:49 +0200)
committerThomas Kjeldahl Nilsson <thomas@kjeldahlnilsson.net>
Wed, 1 Aug 2012 19:44:54 +0000 (21:44 +0200)
commit6cd4f938af07dde195bbace31a78d7f1d3a9015b
treeebf6b6f2bbceefab90b003cf168d4832bf38a646
parent4b21e31d2df70d2f947535abfd41395fb63b9a43
Adds rake tasks to run gitorious health diagnostics from the CLI

Returns roughly the same info as /admin/diagnostics in the web
interface. Be sure to invoke the tasks using the same user
that owns the rails process (usually the "git" user).

Example:
sudo su git -c "RAILS_ENV=production bundle exec rake diagnostics:summary"
lib/gitorious/diagnostics.rb
lib/tasks/diagnostics.rake [new file with mode: 0644]