Sha256: 8839ea2e03a3e08fd42a7407d3644bb5ab11aaab455530d4e448c0f80bba0446

Contents?: true

Size: 300 Bytes

Versions: 2

Compression:

Stored size: 300 Bytes

Contents

# frozen_string_literal: true

module LogToolbox
  class LogUtil
    def self.system_version
      Rails.root.join('.version').read.strip
    end

    def self.system_service_name
      app_module.deconstantize.underscore
    end

    def self.app_module
      Rails.app_class.name
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
log_toolbox-1.3.11 lib/log_toolbox/log_util.rb
log_toolbox-1.3.10 lib/log_toolbox/log_util.rb