summaryrefslogtreecommitdiff
path: root/lib/bundler/cli/install.rb
diff options
context:
space:
mode:
authorStefan Lance <stefan@lances.net>2015-06-20 15:49:57 -0500
committerSamuel Giddins <segiddins@segiddins.me>2016-07-05 15:11:19 -0300
commit055f95b62dae20eaa34a4cf2a4919b1fbd0da4ed (patch)
treec0fb86fa211d7ffbe6fa9296305d3856bffb617d /lib/bundler/cli/install.rb
parentf58f04277cb47dc9b1fdfe401a15bbe281dfa7c3 (diff)
downloadbundler-055f95b62dae20eaa34a4cf2a4919b1fbd0da4ed.tar.gz
Show deprecation warning when using --binstubs
Diffstat (limited to 'lib/bundler/cli/install.rb')
-rw-r--r--lib/bundler/cli/install.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/bundler/cli/install.rb b/lib/bundler/cli/install.rb
index 07950c9010..306732413b 100644
--- a/lib/bundler/cli/install.rb
+++ b/lib/bundler/cli/install.rb
@@ -55,6 +55,12 @@ module Bundler
Bundler::Fetcher.disable_endpoint = options["full-index"]
+ if options["binstubs"]
+ Bundler.ui.deprecate("The --binstubs option will be removed from "\
+ "Bundler 2.0 and replaced with "\
+ "`bundle binstubs`\n")
+ end
+
# rubygems plugins sometimes hook into the gem install process
Gem.load_env_plugins if Gem.respond_to?(:load_env_plugins)