fix relative pathname lookup while installing a local .gem file

use double quotes for the require

Fixes #3040
This commit is contained in:
Pere Urbon-Bayes 2015-04-17 18:07:24 +02:00 committed by Jordan Sissel
parent 8f8509f0fc
commit be1c6e30d0

View file

@ -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