aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bundler/plugin/installer/rubygems.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bundler/plugin/installer/rubygems.rb')
-rw-r--r--lib/bundler/plugin/installer/rubygems.rb27
1 files changed, 27 insertions, 0 deletions
diff --git a/lib/bundler/plugin/installer/rubygems.rb b/lib/bundler/plugin/installer/rubygems.rb
new file mode 100644
index 0000000000..7ae74fa93b
--- /dev/null
+++ b/lib/bundler/plugin/installer/rubygems.rb
@@ -0,0 +1,27 @@
+# frozen_string_literal: true
+
+module Bundler
+ module Plugin
+ class Installer
+ class Rubygems < Bundler::Source::Rubygems
+ def version_message(spec)
+ "#{spec.name} #{spec.version}"
+ end
+
+ private
+
+ def requires_sudo?
+ false # Will change on implementation of project level plugins
+ end
+
+ def rubygems_dir
+ Plugin.root
+ end
+
+ def cache_path
+ Plugin.cache
+ end
+ end
+ end
+ end
+end