Class: LicenseFinder::CLI::IgnoredGroups

Inherits:
Base
  • Object
show all
Extended by:
Subcommand
Includes:
MakesDecisions
Defined in:
lib/license_finder/cli/ignored_groups.rb

Instance Method Summary collapse

Methods included from Subcommand

banner

Methods included from MakesDecisions

included

Instance Method Details

#add(group) ⇒ Object



17
18
19
20
21
# File 'lib/license_finder/cli/ignored_groups.rb', line 17

def add(group)
  modifying { decisions.ignore_group(group, txn) }

  printer.say "Added #{group} to the ignored groups"
end

#listObject



10
11
12
13
# File 'lib/license_finder/cli/ignored_groups.rb', line 10

def list
  printer.say 'Ignored Groups:', :blue
  say_each(decisions.ignored_groups)
end

#remove(group) ⇒ Object



25
26
27
28
29
# File 'lib/license_finder/cli/ignored_groups.rb', line 25

def remove(group)
  modifying { decisions.heed_group(group, txn) }

  printer.say "Removed #{group} from the ignored groups"
end