diff options
author | Samuel Giddins <segiddins@segiddins.me> | 2016-08-18 15:32:12 -0500 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2016-08-18 15:36:36 -0500 |
commit | 4a787997c6fb9b520251cd10ce0f2bda4e1c0e64 (patch) | |
tree | 48b243e906bb5c4406346f80aec46bf91ae37382 /lib/bundler/cli | |
parent | 54ff7a4fb827ec36d5cac2fac843993f28b19077 (diff) | |
download | bundler-4a787997c6fb9b520251cd10ce0f2bda4e1c0e64.tar.gz |
Add FeatureFlag classseg-feature-flag
Main use will be code showing what is true setting vs what is flagged
Also can be used to develop for future major versions without needing a separate dev branch
Diffstat (limited to 'lib/bundler/cli')
-rw-r--r-- | lib/bundler/cli/install.rb | 2 | ||||
-rw-r--r-- | lib/bundler/cli/update.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundler/cli/install.rb b/lib/bundler/cli/install.rb index 5c7b8c5b0b..9802ea8036 100644 --- a/lib/bundler/cli/install.rb +++ b/lib/bundler/cli/install.rb @@ -63,7 +63,7 @@ module Bundler # rubygems plugins sometimes hook into the gem install process Gem.load_env_plugins if Gem.respond_to?(:load_env_plugins) - Plugin.gemfile_install(Bundler.default_gemfile) if Bundler.settings[:plugins] + Plugin.gemfile_install(Bundler.default_gemfile) if Bundler.feature_flag.plugins? definition = Bundler.definition definition.validate_ruby! diff --git a/lib/bundler/cli/update.rb b/lib/bundler/cli/update.rb index 1c35659e0b..c2bf88ff18 100644 --- a/lib/bundler/cli/update.rb +++ b/lib/bundler/cli/update.rb @@ -10,7 +10,7 @@ module Bundler def run Bundler.ui.level = "error" if options[:quiet] - Plugin.gemfile_install(Bundler.default_gemfile) if Bundler.settings[:plugins] + Plugin.gemfile_install(Bundler.default_gemfile) if Bundler.feature_flag.plugins? sources = Array(options[:source]) groups = Array(options[:group]).map(&:to_sym) |