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>
Tue, 31 Jul 2012 09:49:54 +0000 (11:49 +0200)
commite304edbef321ad8db25341cf1d83c7df2b661d2c
treeebf6b6f2bbceefab90b003cf168d4832bf38a646
parent12d0c6c409beba15fa3c9fa637846facf7e5f910
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]