Class: Sem::CLI::Projects
- Inherits:
-
Dracula
- Object
- Dracula
- Sem::CLI::Projects
- Defined in:
- lib/sem/cli/projects.rb
Defined Under Namespace
Classes: EnvVars, Files, SharedConfigs
Instance Method Summary collapse
Instance Method Details
#create(project_name) ⇒ Object
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 |
# File 'lib/sem/cli/projects.rb', line 62 def create(project_name) url = Sem::Helpers::GitUrl.new([:url]) abort "Git URL #{[:url]} is invalid." unless url.valid? args = { :repo_provider => url.repo_provider, :repo_owner => url.repo_owner, :repo_name => url.repo_name } project = Sem::API::Project.create!(project_name, args) Sem::Views::Projects.info(project) end |