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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
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
Steven Gueguen
slapos
Commits
80bb4305
Commit
80bb4305
authored
Apr 11, 2013
by
Sebastien Robin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
allow to pass extra parameters when creating simple wrapper
parent
d1b70a8b
Changes
1
Show 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):
...
@@ -35,6 +35,7 @@ class Recipe(GenericBaseRecipe):
wrapper_path
=
self
.
options
[
'wrapper-path'
]
wrapper_path
=
self
.
options
[
'wrapper-path'
]
wait_files
=
self
.
options
.
get
(
'wait-for-files'
)
wait_files
=
self
.
options
.
get
(
'wait-for-files'
)
environment
=
self
.
options
.
get
(
'environment'
)
environment
=
self
.
options
.
get
(
'environment'
)
parameters_extra
=
self
.
options
.
get
(
'parameters_extra'
)
if
not
wait_files
and
not
environment
:
if
not
wait_files
and
not
environment
:
# Create a simple wrapper as shell script
# Create a simple wrapper as shell script
...
@@ -42,6 +43,7 @@ class Recipe(GenericBaseRecipe):
...
@@ -42,6 +43,7 @@ class Recipe(GenericBaseRecipe):
name
=
wrapper_path
,
name
=
wrapper_path
,
command
=
command_line
[
0
],
command
=
command_line
[
0
],
parameters
=
command_line
[
1
:],
parameters
=
command_line
[
1
:],
parameters_extra
=
parameters_extra
,
)]
)]
# More complex needs: create a Python script as wrapper
# More complex needs: create a Python script as wrapper
...
...
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