mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 22:57:16 -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
8f8509f0fc
commit
be1c6e30d0
1 changed files with 2 additions and 1 deletions
|
@ -32,6 +32,7 @@ class LogStash::PluginManager::Command < Clamp::Command
|
||||||
end
|
end
|
||||||
|
|
||||||
def relative_path(path)
|
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
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue