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/api/metadata

Installation

Add this line to your application's Gemfile:

gem 'code_version', '~> 0.1.5'

And then execute:

$ bundle

And mount rails engine routes to your application routes by putting

Rails.application.routes.draw do
    ...
    mount CodeVersion::Engine => "api/metadata"
    ...
end

Contributing

Contribution directions go here.

License

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