Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
ng6
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
54
Issues
54
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
genotoul-bioinfo
ng6
Commits
05e824b4
Commit
05e824b4
authored
Feb 26, 2020
by
Celine Noirot
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'issue#172' into 'master'
Merge branch issue#172 with dev See merge request
!102
parents
12139447
f5cb64a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
workflows/addproject/__init__.py
workflows/addproject/__init__.py
+5
-3
No files found.
workflows/addproject/__init__.py
View file @
05e824b4
...
...
@@ -16,9 +16,8 @@
#
from
jflow.workflow
import
Workflow
from
ng6.project
import
Project
from
ng6.config_reader
import
NG6ConfigReader
from
workflows.types
import
ng6adminlogin
,
uniqproject
,
ng6space
class
AddProject
(
Workflow
):
...
...
@@ -27,10 +26,13 @@ class AddProject (Workflow):
return
"Add a brand new project"
def
define_parameters
(
self
,
function
=
"process"
):
ng6conf
=
NG6ConfigReader
()
space_choices
=
ng6conf
.
get_available_spaces
()
self
.
add_parameter
(
"admin_login"
,
"The login of a ng6 administrator"
,
required
=
True
,
type
=
ng6adminlogin
)
self
.
add_parameter
(
"project_name"
,
"Give a name to your project (has to be unique)"
,
flag
=
"--name"
,
required
=
True
,
type
=
uniqproject
)
self
.
add_parameter
(
"project_description"
,
"Give a description to your project"
,
flag
=
"--description"
,
required
=
True
)
self
.
add_parameter
(
"space"
,
"Where to store data"
,
flag
=
"--space"
,
default
=
"
default"
,
type
=
ng6space
)
self
.
add_parameter
(
"space"
,
"Where to store data"
,
flag
=
"--space"
,
default
=
"
shortterm"
,
type
=
ng6space
,
choices
=
space_choices
)
def
process
(
self
):
project
=
Project
(
self
.
project_name
,
self
.
project_description
,
self
.
admin_login
,
None
,
self
.
space
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment