Commit 523efa17 authored by Mayoro Diagne's avatar Mayoro Diagne

firt release of slappromise for html check

parent df7b2306
...@@ -25,3 +25,25 @@ ...@@ -25,3 +25,25 @@
# #
############################################################################## ##############################################################################
from slapos.recipe.librecipe import GenericBaseRecipe
import sys
class Recipe(GenericBaseRecipe):
"""
Check html promise
"""
def install(self):
config = dict(
hostname=self.options['url'],
port=self.options['working_directory'],
python_path=sys.executable,
)
html_promise = self.createExecutable(
self.options['path'],
self.substituteTemplate(
self.getTemplateFilename('html_promise.py.in'),
config))
return [html_promise]
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment