Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
106
Merge Requests
106
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
slapos
Commits
80bb4305
Commit
80bb4305
authored
Apr 11, 2013
by
Sebastien Robin
2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
allow to pass extra parameters when creating simple wrapper
parent
d1b70a8b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
slapos/recipe/wrapper.py
slapos/recipe/wrapper.py
+2
-0
No files found.
slapos/recipe/wrapper.py
View file @
80bb4305
...
...
@@ -35,6 +35,7 @@ class Recipe(GenericBaseRecipe):
wrapper_path
=
self
.
options
[
'wrapper-path'
]
wait_files
=
self
.
options
.
get
(
'wait-for-files'
)
environment
=
self
.
options
.
get
(
'environment'
)
parameters_extra
=
self
.
options
.
get
(
'parameters_extra'
)
if
not
wait_files
and
not
environment
:
# Create a simple wrapper as shell script
...
...
@@ -42,6 +43,7 @@ class Recipe(GenericBaseRecipe):
name
=
wrapper_path
,
command
=
command_line
[
0
],
parameters
=
command_line
[
1
:],
parameters_extra
=
parameters_extra
,
)]
# More complex needs: create a Python script as wrapper
...
...
Jérome Perrin
@jerome
mentioned in commit
5f5d5102
·
Jul 19, 2016
mentioned in commit
5f5d5102
mentioned in commit 5f5d5102cf2dd2b4a8d092e32dfc6b87fa3bbc12
Toggle commit list
Jérome Perrin
@jerome
mentioned in commit
6082d6e9
·
Jul 19, 2016
mentioned in commit
6082d6e9
mentioned in commit 6082d6e9b2d0f397d0712d40370e8c4f94572cef
Toggle commit list
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