Skip to content

Commit

Permalink
fix relative pathname lookup while installing a local .gem file
Browse files Browse the repository at this point in the history
use double quotes for the require

Fixes elastic#3040
  • Loading branch information
Pere Urbon-Bayes authored and jordansissel committed Apr 17, 2015
1 parent 8f8509f commit be1c6e3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/logstash/pluginmanager/command.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ def remove_unused_locally_installed_gems!
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

0 comments on commit be1c6e3

Please sign in to comment.