diff options
author | Samuel Giddins <segiddins@segiddins.me> | 2017-07-18 11:40:59 -0500 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2017-07-19 13:10:40 -0500 |
commit | de3f2d2b4e81de6f0d6b9657756472b8c2a3e246 (patch) | |
tree | 725daf61ba034b538db7235a672104c4c2007032 | |
parent | 9f554367e9d71d01dd84a8a48c2da815bdb1bdd6 (diff) | |
download | bundler-de3f2d2b4e81de6f0d6b9657756472b8c2a3e246.tar.gz |
[CLI] Rename #forgotten_option to #deprecated_option
-rw-r--r-- | lib/bundler/cli.rb | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/bundler/cli.rb b/lib/bundler/cli.rb index 9baf17fc32..e40f0fa7e1 100644 --- a/lib/bundler/cli.rb +++ b/lib/bundler/cli.rb @@ -52,7 +52,7 @@ module Bundler end end - def self.forgotten_option(*args, &blk) + def self.deprecated_option(*args, &blk) return if Bundler.feature_flag.forget_cli_options? method_option(*args, &blk) end @@ -152,13 +152,13 @@ module Bundler If the bundle has already been installed, bundler will tell you so and then exit. D - forgotten_option "binstubs", :type => :string, :lazy_default => "bin", :banner => + deprecated_option "binstubs", :type => :string, :lazy_default => "bin", :banner => "Generate bin stubs for bundled gems to ./bin" method_option "clean", :type => :boolean, :banner => "Run bundle clean automatically after install" - forgotten_option "deployment", :type => :boolean, :banner => + deprecated_option "deployment", :type => :boolean, :banner => "Install using defaults tuned for deployment environments" - forgotten_option "frozen", :type => :boolean, :banner => + deprecated_option "frozen", :type => :boolean, :banner => "Do not allow the Gemfile.lock to be updated after this install" method_option "full-index", :type => :boolean, :banner => "Fall back to using the single-file index of all gems" @@ -168,28 +168,28 @@ module Bundler "Specify the number of jobs to run in parallel" method_option "local", :type => :boolean, :banner => "Do not attempt to fetch gems remotely and use the gem cache instead" - forgotten_option "no-cache", :type => :boolean, :banner => + deprecated_option "no-cache", :type => :boolean, :banner => "Don't update the existing gem cache." method_option "force", :type => :boolean, :banner => "Force downloading every gem." method_option "no-prune", :type => :boolean, :banner => "Don't remove stale gems from the cache." - forgotten_option "path", :type => :string, :banner => + deprecated_option "path", :type => :string, :banner => "Specify a different path than the system default ($BUNDLE_PATH or $GEM_HOME). Bundler will remember this value for future installs on this machine" method_option "quiet", :type => :boolean, :banner => "Only output warnings and errors." - forgotten_option "shebang", :type => :string, :banner => + deprecated_option "shebang", :type => :string, :banner => "Specify a different shebang executable name than the default (usually 'ruby')" method_option "standalone", :type => :array, :lazy_default => [], :banner => "Make a bundle that can work without the Bundler runtime" - forgotten_option "system", :type => :boolean, :banner => + deprecated_option "system", :type => :boolean, :banner => "Install to the system location ($BUNDLE_PATH or $GEM_HOME) even if the bundle was previously installed somewhere else for this application" method_option "trust-policy", :alias => "P", :type => :string, :banner => "Gem trust policy (like gem install -P). Must be one of " + Bundler.rubygems.security_policy_keys.join("|") - forgotten_option "without", :type => :array, :banner => + deprecated_option "without", :type => :array, :banner => "Exclude gems that are part of the specified named group." - forgotten_option "with", :type => :array, :banner => + deprecated_option "with", :type => :array, :banner => "Include gems that are part of the specified named group." map "i" => "install" def install |