CodeVersion

The mountable rails engine that provide api call to get the git commit number on server (at rails root directory)

Usage

After install you can go to the url to get a git commit number of code that deploy on server. Url example: http://your_domain/code_version/show

Installation

Add this line to your application's Gemfile:

gem 'code_version'

And then execute:

$ bundle

And mount rails engine routes to your application routes by putting

Rails.application.routes.draw do
    ...
    mount ServerCodeVersion::Engine => "/code_version"
    ...
end

Contributing

Contribution directions go here.

License

The gem is available as open source under the terms of the MIT License.