Sha256: 46aef4fb65bac2a303e5c83deed42f388e5d5fd2c514b224fb7bbe49a9aa75da
Contents?: true
Size: 691 Bytes
Versions: 1
Compression:
Stored size: 691 Bytes
Contents
module FluentdUI def self.latest_version=(version) @latest = version end def self.latest_version @latest end def self.update_available? return unless @latest latest = Gem::Version.new(@latest) current = Gem::Version.new(::FluentdUI::VERSION) latest > current end def self.fluentd_version setup_fluentd = Fluentd.instance return nil unless setup_fluentd setup_fluentd.agent.version end def self.data_dir dir = ENV["FLUENTD_UI_DATA_DIR"].presence || ENV["HOME"] + "/.fluentd-ui/core_data" FileUtils.mkdir_p(dir) # ensure directory exists dir end def self.td_agent_ui? ENV["FLUENTD_UI_TD_AGENT"].present? end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fluentd-ui-0.3.2 | lib/fluentd-ui.rb |