Class: LicenseFinder::CLI::ProjectName
Instance Method Summary collapse
Methods included from Subcommand
Methods included from MakesDecisions
Instance Method Details
#add(name) ⇒ Object
17 18 19 20 21 |
# File 'lib/license_finder/cli/project_name.rb', line 17 def add(name) { decisions.name_project(name, txn) } printer.say "Set the project name to #{name}", :green end |
#remove ⇒ Object
25 26 27 28 29 |
# File 'lib/license_finder/cli/project_name.rb', line 25 def remove { decisions.unname_project(txn) } printer.say 'Removed the project name' end |
#show ⇒ Object
10 11 12 13 |
# File 'lib/license_finder/cli/project_name.rb', line 10 def show printer.say 'Project Name:', :blue printer.say decisions.project_name end |