diff options
author | Asutosh Palai <asupalai@gmail.com> | 2016-06-07 21:09:37 +0530 |
---|---|---|
committer | Asutosh Palai <asupalai@gmail.com> | 2016-06-07 21:36:08 +0530 |
commit | 81ea9335591768560dcc917a1d2e848ff938f11e (patch) | |
tree | 94491c1df41d358b548825a273e8810f019fbca3 /lib/bundler/plugin.rb | |
parent | 1a9857473bbd7b91a5abd0b2e7da144f375ff761 (diff) | |
download | bundler-81ea9335591768560dcc917a1d2e848ff938f11e.tar.gz |
Added spec for multiple plugin install
Diffstat (limited to 'lib/bundler/plugin.rb')
-rw-r--r-- | lib/bundler/plugin.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/bundler/plugin.rb b/lib/bundler/plugin.rb index b01ba7aad1..00b4d9e941 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 |