[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fab-user] RFC: using vellum build scripts as source of fabric tasks/env
From: |
Ronny Pfannschmidt |
Subject: |
[Fab-user] RFC: using vellum build scripts as source of fabric tasks/environments |
Date: |
Mon, 11 Aug 2008 23:22:53 +0200 |
Hi,
i worked with vellum and fabric and what they do in regard to "tasks"
looks similar so i made up an integration idea.
A translation of the "complex" example.
def test():
set(fab_hosts = ['localhost'])
def staging():
set(fab_hosts = ['n1.stg.python.org', 'n2.stg.python.org'])
def production():
set(fab_hosts = ['n1.python.org', 'n2.python.org'])
def deploy():
'Deploy the app to the target environment'
local("make dist")
put("bin/bundle.zip", "bundle.zip")
sudo("./install.sh bundle.zip")
*could* look like the following in using vellum:
options(
name 'Test'
)
imports[
module(from 'fabric.vellum')
]
depends(
deploy ['dist']
)
targets(
test
set(fab_hosts ['localhost'])
staging
set(fab_hosts ['n1.stg.python.org' 'n2.stg.python.org'])
production
set(fab_hosts ['n1.python.org' 'n2.python.org'])
dist $ make dist
deploy [
put(from 'bin/bundle.zip' to 'bundle.zip')
sudo $./install.sh bundle.zip
]
)
Im hoping for some comments before trying to make the tools suitable for that
kind of integration.
Regards Ronny
- [Fab-user] RFC: using vellum build scripts as source of fabric tasks/environments,
Ronny Pfannschmidt <=