Sha256: 473ca054ad6e42c7a3790628f49f3a78a67c511b78b4bc9b30317594d60d0908

Contents?: true

Size: 444 Bytes

Versions: 5

Compression:

Stored size: 444 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
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fluentd-ui-0.1.4 lib/fluentd-ui.rb
fluentd-ui-0.1.3 lib/fluentd-ui.rb
fluentd-ui-0.1.2 lib/fluentd-ui.rb
fluentd-ui-0.1.1 lib/fluentd-ui.rb
fluentd-ui-0.1.0 lib/fluentd-ui.rb