Created
June 26, 2014 23:07
-
-
Save sbellware/6194e7e05a8e76c6ddaf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Ops::Diag::InfoController < Ops::Diag::DiagController | |
| def index | |
| release_info_file = File.expand_path("#{Rails.root}/config/release_info.yml") | |
| @build_number = '(unknown)' | |
| @build_date = '(unknown)' | |
| @gems = '(unknown)' | |
| if File.exists?(release_info_file) | |
| data = YAML.load_file(release_info_file) | |
| @build_number = data['build_number'] | |
| @build_date = data['build_date'] | |
| @gems = data['gems'] | |
| end | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment