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
168 169 170 171 172 173 |
# File 'lib/license_finder/cli.rb', line 168 def add(group) { LicenseFinder.config.ignore_groups.push(group) } say "Added #{group} to the ignored bundler groups" end |
#list ⇒ Object
158 159 160 161 162 163 164 165 |
# File 'lib/license_finder/cli.rb', line 158 def list ignored = LicenseFinder.config.ignore_groups say "Ignored Bundler Groups:", :blue ignored.each do |group| say group end end |
#remove(group) ⇒ Object
176 177 178 179 180 181 |
# File 'lib/license_finder/cli.rb', line 176 def remove(group) { LicenseFinder.config.ignore_groups.delete(group) } say "Removed #{group} from the ignored bundler groups" end |