Class: LicenseFinder::CLI::IgnoredDependencies

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

Instance Method Summary collapse

Methods included from Subcommand

banner

Methods included from MakesDecisions

included

Instance Method Details

#add(dep) ⇒ Object



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

def add(dep)
  modifying { decisions.ignore(dep, txn) }

  printer.say "Added #{dep} to the ignored dependencies"
end

#listObject



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

def list
  printer.say 'Ignored Dependencies:', :blue
  say_each(decisions.ignored)
end

#remove(dep) ⇒ Object



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

def remove(dep)
  modifying { decisions.heed(dep, txn) }

  printer.say "Removed #{dep} from the ignored dependencies"
end