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
Xavier Thompson
slapos
Commits
d637e02d
Commit
d637e02d
authored
Dec 03, 2012
by
Marco Mariani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapmonitor-xml recipe
parent
fbf207fc
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
2 deletions
+16
-2
setup.py
setup.py
+2
-1
slapos/recipe/slapmonitor/__init__.py
slapos/recipe/slapmonitor/__init__.py
+14
-1
No files found.
setup.py
View file @
d637e02d
...
...
@@ -129,7 +129,8 @@ setup(name=name,
'siptester = slapos.recipe.siptester:SipTesterRecipe'
,
'slapconfiguration = slapos.recipe.slapconfiguration:Recipe'
,
'slapcontainer = slapos.recipe.container:Recipe'
,
'slapmonitor = slapos.recipe.slapmonitor:Recipe'
,
'slapmonitor = slapos.recipe.slapmonitor:MonitorRecipe'
,
'slapmonitor-xml = slapos.recipe.slapmonitor:MonitorXMLRecipe'
,
'slapreport = slapos.recipe.slapreport:Recipe'
,
'slaprunner = slapos.recipe.slaprunner:Recipe'
,
'slaprunner.test = slapos.recipe.slaprunner:Test'
,
...
...
slapos/recipe/slapmonitor/__init__.py
View file @
d637e02d
...
...
@@ -27,7 +27,7 @@
from
slapos.recipe.librecipe
import
GenericBaseRecipe
class
Recipe
(
GenericBaseRecipe
):
class
Monitor
Recipe
(
GenericBaseRecipe
):
def
install
(
self
):
options
=
self
.
options
...
...
@@ -39,3 +39,16 @@ class Recipe(GenericBaseRecipe):
])
return
[
script
]
class
MonitorXMLRecipe
(
GenericBaseRecipe
):
def
install
(
self
):
options
=
self
.
options
script
=
self
.
createWrapper
(
name
=
options
[
'path'
],
command
=
options
[
'slapmonitor-xml-path'
],
parameters
=
[
options
[
'database-path'
],
],
parameters_extra
=
True
)
return
[
script
]
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