uppercase Gitlab version and revision constants. check api return gitlab version now

This commit is contained in:
Dmitriy Zaporozhets 2013-02-16 14:42:22 +02:00
parent e65cc4f849
commit b729728536
5 changed files with 10 additions and 7 deletions

View file

@ -40,7 +40,9 @@ module Gitlab
get "/check" do
{
api_version: '3'
api_version: Gitlab::API.version,
gitlab_version: Gitlab::VERSION,
gitlab_rev: Gitlab::REVISION,
}
end
end

View file

@ -40,8 +40,8 @@ namespace :gitlab do
puts ""
puts "GitLab information".yellow
puts "Version:\t#{Gitlab::Version}"
puts "Revision:\t#{Gitlab::Revision}"
puts "Version:\t#{Gitlab::VERSION}"
puts "Revision:\t#{Gitlab::REVISION}"
puts "Directory:\t#{Rails.root}"
puts "DB Adapter:\t#{database_adapter}"
puts "URL:\t\t#{Gitlab.config.gitlab.url}"