Commit b7297285 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

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

parent e65cc4f8
...@@ -20,6 +20,7 @@ config/database.yml ...@@ -20,6 +20,7 @@ config/database.yml
config/initializers/omniauth.rb config/initializers/omniauth.rb
config/unicorn.rb config/unicorn.rb
config/resque.yml config/resque.yml
config/aws.yml
db/data.yml db/data.yml
.idea .idea
.DS_Store .DS_Store
......
%h3.page_title %h3.page_title
GITLAB GITLAB
.pull-right .pull-right
%span= Gitlab::Version %span= Gitlab::VERSION
%small= Gitlab::Revision %small= Gitlab::REVISION
%hr %hr
%p.lead %p.lead
Self Hosted Git Management Self Hosted Git Management
......
module Gitlab module Gitlab
Version = File.read(Rails.root.join("VERSION")) VERSION = File.read(Rails.root.join("VERSION")).strip
Revision = `git log --pretty=format:'%h' -n 1` REVISION = `git log --pretty=format:'%h' -n 1`
def self.config def self.config
Settings Settings
......
...@@ -40,7 +40,9 @@ module Gitlab ...@@ -40,7 +40,9 @@ module Gitlab
get "/check" do get "/check" do
{ {
api_version: '3' api_version: Gitlab::API.version,
gitlab_version: Gitlab::VERSION,
gitlab_rev: Gitlab::REVISION,
} }
end end
end end
......
...@@ -40,8 +40,8 @@ namespace :gitlab do ...@@ -40,8 +40,8 @@ namespace :gitlab do
puts "" puts ""
puts "GitLab information".yellow puts "GitLab information".yellow
puts "Version:\t#{Gitlab::Version}" puts "Version:\t#{Gitlab::VERSION}"
puts "Revision:\t#{Gitlab::Revision}" puts "Revision:\t#{Gitlab::REVISION}"
puts "Directory:\t#{Rails.root}" puts "Directory:\t#{Rails.root}"
puts "DB Adapter:\t#{database_adapter}" puts "DB Adapter:\t#{database_adapter}"
puts "URL:\t\t#{Gitlab.config.gitlab.url}" puts "URL:\t\t#{Gitlab.config.gitlab.url}"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment