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



15
16
17
18
19
# File 'lib/license_finder/cli/ignored_groups.rb', line 15

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

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

#listObject



8
9
10
11
# File 'lib/license_finder/cli/ignored_groups.rb', line 8

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

#remove(group) ⇒ Object



23
24
25
26
27
# File 'lib/license_finder/cli/ignored_groups.rb', line 23

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

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