bundler refactor leftover

This commit is contained in:
Colin Surprenant 2015-04-21 13:07:40 +02:00
parent 2280a3aa7d
commit 2f2fe21b78

View file

@ -13,7 +13,7 @@ class LogStash::PluginManager::Uninstall < LogStash::PluginManager::Command
parameter "PLUGIN", "plugin name"
def execute
LogStash::Environment.bundler_setup!
LogStash::Bundler.setup!
signal_error("File #{LogStash::Environment::GEMFILE_PATH} does not exist or is not writable, aborting") unless File.writable?(LogStash::Environment::GEMFILE_PATH)
@ -31,7 +31,7 @@ class LogStash::PluginManager::Uninstall < LogStash::PluginManager::Command
# any errors will be logged to $stderr by invoke_bundler!
# output, exception = LogStash::Bundler.invoke_bundler!(:install => true, :clean => true)
output = LogStash::Bundler.invoke_bundler!(:install => true)
remove_unused_locally_installed_gems!
end
rescue => exception