mirror of
https://github.com/fluent/fluentd-ui.git
synced 2025-08-11 16:57:11 +02:00
Suppress "No such file or directory - list" message
How to reproduce: 1. Remove ~/.fluentd-ui/ 2. Run `bin/rails console` 3. You will see the following output: bin/rails: No such file or directory - list Loading development environment (Rails 4.1.4) irb(main):001:0>
This commit is contained in:
parent
f461ed091d
commit
defaa55edb
@ -88,7 +88,9 @@ class Plugin
|
||||
def self.installed
|
||||
Rails.cache.fetch("installed_gems", expires_in: 3.seconds) do
|
||||
Bundler.with_clean_env do
|
||||
gems = `#{fluent_gem_path} list`.try(:lines)
|
||||
fluent_gem = fluent_gem_path
|
||||
return [] unless fluent_gem
|
||||
gems = `#{fluent_gem} list`.try(:lines)
|
||||
return [] unless gems
|
||||
gems.grep(/fluent-plugin/).map do |gem|
|
||||
name, versions_str = gem.strip.split(" ")
|
||||
|
Loading…
Reference in New Issue
Block a user