method
normalize_groups

v2_6_3 -
Show latest stable
-
0 notes -
Class: Install
- 1_8_6_287
- 1_8_7_72
- 1_8_7_330
- 1_9_1_378
- 1_9_2_180
- 1_9_3_125
- 1_9_3_392
- 2_1_10
- 2_2_9
- 2_4_6
- 2_5_5
- 2_6_3 (0)
- What's this?
normalize_groups()
private
Hide source
# File lib/bundler/cli/install.rb, line 148 def normalize_groups options[:with] &&= options[:with].join(":").tr(" ", ":").split(":") options[:without] &&= options[:without].join(":").tr(" ", ":").split(":") check_for_group_conflicts_in_cli_options Bundler.settings.set_command_option :with, nil if options[:with] == [] Bundler.settings.set_command_option :without, nil if options[:without] == [] with = options.fetch(:with, []) with |= Bundler.settings[:with].map(&:to_s) with -= options[:without] if options[:without] without = options.fetch(:without, []) without |= Bundler.settings[:without].map(&:to_s) without -= options[:with] if options[:with] options[:with] = with options[:without] = without end