Class: LicenseFinder::CLI::Approvals
Instance Method Summary collapse
Methods included from Subcommand
Methods included from MakesDecisions
Instance Method Details
#add(*names) ⇒ Object
12 13 14 15 16 17 |
# File 'lib/license_finder/cli/approvals.rb', line 12 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
21 22 23 24 25 |
# File 'lib/license_finder/cli/approvals.rb', line 21 def remove(dep) { decisions.unapprove(dep, txn) } say "The dependency #{dep} no longer has a manual approval" end |