aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bundler/plugin.rb
diff options
context:
space:
mode:
authorAsutosh Palai <asupalai@gmail.com>2016-06-07 21:09:37 +0530
committerAsutosh Palai <asupalai@gmail.com>2016-06-07 21:36:08 +0530
commit81ea9335591768560dcc917a1d2e848ff938f11e (patch)
tree94491c1df41d358b548825a273e8810f019fbca3 /lib/bundler/plugin.rb
parent1a9857473bbd7b91a5abd0b2e7da144f375ff761 (diff)
downloadbundler-81ea9335591768560dcc917a1d2e848ff938f11e.tar.gz
Added spec for multiple plugin install
Diffstat (limited to 'lib/bundler/plugin.rb')
-rw-r--r--lib/bundler/plugin.rb6
1 files changed, 3 insertions, 3 deletions
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