Skip to content

Instantly share code, notes, and snippets.

@sbellware
Created June 26, 2014 23:07
Show Gist options
  • Select an option

  • Save sbellware/6194e7e05a8e76c6ddaf to your computer and use it in GitHub Desktop.

Select an option

Save sbellware/6194e7e05a8e76c6ddaf to your computer and use it in GitHub Desktop.
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