Class: Sem::CLI::Projects
- Inherits:
-
Dracula
- Object
- Dracula
- Sem::CLI::Projects
show all
- Defined in:
- lib/sem/cli/projects.rb
Defined Under Namespace
Classes: EnvVars, Files, SharedConfigs
Instance Method Summary
collapse
Instance Method Details
#info(project_name) ⇒ Object
15
16
17
18
19
|
# File 'lib/sem/cli/projects.rb', line 15
def info(project_name)
project = Sem::API::Project.find!(project_name)
Sem::Views::Projects.info(project)
end
|
#list ⇒ Object
4
5
6
7
8
9
10
11
12
|
# File 'lib/sem/cli/projects.rb', line 4
def list
projects = Sem::API::Project.all
if !projects.empty?
Sem::Views::Projects.list(projects)
else
Sem::Views::Projects.setup_first_project
end
end
|