Module: Resqued::ProclineVersion

Included in:
Listener, Master
Defined in:
lib/resqued/procline_version.rb

Instance Method Summary collapse

Instance Method Details

#procline_versionObject



5
6
7
8
9
10
11
12
13
14
15
# File 'lib/resqued/procline_version.rb', line 5

def procline_version
  @version ||=
    begin
      # If we've built a custom version, this should show the custom version.
      Gem.loaded_specs["resqued"].version.to_s
    rescue Object
      # If this isn't a gem, fall back to the version in resqued/version.rb.
      Resqued::VERSION
    end
  "resqued-#{@version}"
end