Commit 26e75418 authored by Łukasz Nowak's avatar Łukasz Nowak

Locally develop slapos.cookbook.

As develop recipes have to be available *before* buildout run add check-recipe
part which will stop buildout in case if recipe is not in develop-eggs.

Fetch recipe using usual buildout commands to interact with buildout's provided
git.
parent 12f290f5
...@@ -5,7 +5,13 @@ extends = ...@@ -5,7 +5,13 @@ extends =
versions = versions versions = versions
# Local development
develop =
${:parts-directory}/slapos.cookbook-repository
parts += parts +=
# Local development
slapos.cookbook-repository
check-recipe
# Create instance template # Create instance template
template template
validator validator
...@@ -15,6 +21,20 @@ parts += ...@@ -15,6 +21,20 @@ parts +=
# development / fast switching environment for whole software # development / fast switching environment for whole software
unzip = true unzip = true
# Local development
[slapos.cookbook-repository]
recipe = plone.recipe.command
stop-on-error = true
location = ${buildout:parts-directory}/${:_buildout_section_name_}
command = ${git:location}/bin/git clone --quiet http://git.erp5.org/repos/slapos.git ${:location}
update-command = cd ${:location} && ${git:location}/bin/git pull --quiet
[check-recipe]
recipe = plone.recipe.command
stop-on-error = true
update-command = ${:command}
command = grep parts ${buildout:develop-eggs-directory}/slapos.cookbook.egg-link
[template-mariadb] [template-mariadb]
recipe = slapos.recipe.template recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-mariadb.cfg url = ${:_profile_base_location_}/instance-mariadb.cfg
......
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