Versions:
- Ruby: 2.1.4
- Capistrano: 3.x (latest)
- Rake / Rails / etc: Rails 4.1
Platform:
- Working on.... OS X
- Deploying to... CentOS / AWS
We're deploying one service as part of a larger system. Each service (and environment therein) needs to be able to report its current version based on git (github) info, e.g. commit hash, tag, and/or release version ... at runtime -- a common interface for all services. Other info like OS version, ruby/rails, database and other information can be queried at runtime ... or at deploy time and saved.
I see that there's a file written, revisions.log at the top level of the app, and also see there's a /repo directory, but this is not within the scope of what my app can access.
I probably just want to write a YAML or JSON file with all of the info I might need.
Question 1: does anyone know of an existing extension that does this kind of thing?
Question 2: any pointers or references I can jump off from?
Thanks
Tom