module Fixings::AppRelease

Public Class Methods

current() click to toggle source
# 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