mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 06:37:19 -04:00
fix relative pathname lookup while installing a local .gem file
use double quotes for the require Fixes #3040
This commit is contained in:
parent
cf533c7c11
commit
8d938b7166
1 changed files with 2 additions and 1 deletions
|
@ -32,6 +32,7 @@ class LogStash::PluginManager::Command < Clamp::Command
|
|||
end
|
||||
|
||||
def relative_path(path)
|
||||
Pathname.new(path).relative_path_from(Pathname.new(LogStash::Environment::LOGSTASH_HOME)).to_s
|
||||
require "pathname"
|
||||
::Pathname.new(path).relative_path_from(::Pathname.new(LogStash::Environment::LOGSTASH_HOME)).to_s
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue