Class: LicenseFinder::CLI::Approvals
Instance Method Summary collapse
Methods included from Subcommand
Methods included from MakesDecisions
Instance Method Details
#add(*names) ⇒ Object
11 12 13 14 15 16 |
# File 'lib/license_finder/cli/approvals.rb', line 11 def add(*names) assert_some names { names.each { |name| decisions.approve(name, txn) } } say "The #{names.join(', ')} dependency has been approved!", :green end |
#remove(dep) ⇒ Object
20 21 22 23 24 |
# File 'lib/license_finder/cli/approvals.rb', line 20 def remove(dep) { decisions.unapprove(dep, txn) } say "The dependency #{dep} no longer has a manual approval" end |