Class: LicenseFinder::CLI::IgnoredDependencies
- Extended by:
- Subcommand
- Includes:
- MakesDecisions
- Defined in:
- lib/license_finder/cli/ignored_dependencies.rb
Instance Method Summary collapse
Methods included from Subcommand
Methods included from MakesDecisions
Instance Method Details
#add(dep) ⇒ Object
17 18 19 20 21 |
# File 'lib/license_finder/cli/ignored_dependencies.rb', line 17 def add(dep) { decisions.ignore(dep, txn) } printer.say "Added #{dep} to the ignored dependencies" end |
#list ⇒ Object
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) { decisions.heed(dep, txn) } printer.say "Removed #{dep} from the ignored dependencies" end |