Method: Licensed::Sources::Bundler#exclude_groups

Defined in:
lib/licensed/sources/bundler.rb

#exclude_groupsObject

Returns any groups to exclude specified from both licensed configuration and bundler configuration. Defaults to [:development, :test] + ::Bundler.settings



93
94
95
96
97
98
99
# File 'lib/licensed/sources/bundler.rb', line 93

def exclude_groups
  @exclude_groups ||= begin
    exclude = Array(config.dig("bundler", "without"))
    exclude = DEFAULT_WITHOUT_GROUPS if exclude.empty?
    exclude.uniq.map(&:to_sym)
  end
end