Class: LicenseFinder::CLI::IgnoredBundlerGroups
- Inherits:
-
ConfigSubcommand
- Object
- Thor
- Base
- Subcommand
- ConfigSubcommand
- LicenseFinder::CLI::IgnoredBundlerGroups
- Defined in:
- lib/license_finder/cli.rb
Instance Method Summary collapse
Methods inherited from Subcommand
Methods inherited from Base
Instance Method Details
#add(group) ⇒ Object
146 147 148 149 150 151 |
# File 'lib/license_finder/cli.rb', line 146 def add(group) { LicenseFinder.config.ignore_groups.push(group) } say "Added #{group} to the ignored bundler groups" end |
#list ⇒ Object
136 137 138 139 140 141 142 143 |
# File 'lib/license_finder/cli.rb', line 136 def list ignored = LicenseFinder.config.ignore_groups say "Ignored Bundler Groups:", :blue ignored.each do |group| say group end end |
#remove(group) ⇒ Object
154 155 156 157 158 159 |
# File 'lib/license_finder/cli.rb', line 154 def remove(group) { LicenseFinder.config.ignore_groups.delete(group) } say "Removed #{group} from the ignored bundler groups" end |