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



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

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

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

#listObject



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

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

#remove(dep) ⇒ Object



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

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

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