From 81ea9335591768560dcc917a1d2e848ff938f11e Mon Sep 17 00:00:00 2001 From: Asutosh Palai Date: Tue, 7 Jun 2016 21:09:37 +0530 Subject: Added spec for multiple plugin install --- lib/bundler/plugin.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/bundler/plugin.rb') diff --git a/lib/bundler/plugin.rb b/lib/bundler/plugin.rb index b01ba7aa..00b4d9e9 100644 --- a/lib/bundler/plugin.rb +++ b/lib/bundler/plugin.rb @@ -13,9 +13,9 @@ module Bundler PLUGIN_FILE_NAME = "plugins.rb".freeze - @commands = {} + module_function - module_function + @commands = {} # Installs a new plugin by the given name # @@ -28,7 +28,7 @@ module Bundler save_plugins paths rescue PluginError => e - paths.values.map {|path| Bundler.rm_rf(path)} if paths + paths.values.map {|path| Bundler.rm_rf(path) } if paths Bundler.ui.error "Failed to install plugin #{name}: #{e.message}\n #{e.backtrace.join("\n ")}" end -- cgit v1.2.3