Module: Fixings::AppRelease
- Defined in:
- lib/fixings/app_release.rb
Class Method Summary collapse
Class Method Details
.current ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/fixings/app_release.rb', line 4 def self.current @current ||= begin release_file = Rails.root.join("RELEASE").to_s if File.exist?(release_file) File.read(release_file).chomp elsif ENV["RELEASE"] ENV["RELEASE"] else "unknown" end end end |