Class: LicenseFinder::CLI::ProjectName

Inherits:
Base
  • Object
show all
Extended by:
Subcommand
Includes:
MakesDecisions
Defined in:
lib/license_finder/cli/project_name.rb

Instance Method Summary collapse

Methods included from Subcommand

banner

Methods included from MakesDecisions

included

Instance Method Details

#add(name) ⇒ Object



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

def add(name)
  modifying { decisions.name_project(name, txn) }

  say "Set the project name to #{name}", :green
end

#removeObject



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

def remove
  modifying { decisions.unname_project(txn) }

  say "Removed the project name"
end

#showObject



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

def show
  say "Project Name:", :blue
  say decisions.project_name
end