Sha256: 17ec82b0d3fca5cc73c19a03097c5146eb9a3b5ed5be62eaac335f1bd1742b4c

Contents?: true

Size: 248 Bytes

Versions: 12

Compression:

Stored size: 248 Bytes

Contents

# frozen_string_literal: true

module LogToolbox
  class LogUtil
    def self.system_version
      File.read('.version').delete!("\n")
    end

    def self.system_service_name
      Rails.application.class.parent_name.underscore
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
log_toolbox-1.3.9 lib/log_toolbox/log_util.rb
log_toolbox-1.3.8 lib/log_toolbox/log_util.rb
log_toolbox-1.3.7 lib/log_toolbox/log_util.rb
log_toolbox-1.3.6 lib/log_toolbox/log_util.rb
log_toolbox-1.3.5 lib/log_toolbox/log_util.rb
log_toolbox-1.3.4 lib/log_toolbox/log_util.rb
log_toolbox-1.3.3 lib/log_toolbox/log_util.rb
log_toolbox-1.3.2 lib/log_toolbox/log_util.rb
log_toolbox-1.3.1 lib/log_toolbox/log_util.rb
log_toolbox-1.3.0 lib/log_toolbox/log_util.rb
log_toolbox-1.2.0 lib/log_toolbox/log_util.rb
log_toolbox-1.0.0 lib/log_toolbox/log_util.rb