Creating Pakefiles

If you know YAML, you know Pakefiles. Also it’s good to know a little about make.

Some notes

  • Default target. Your Pakefile must have one.
  • Actions. You can have one python, one bash and many target actions in one Pakefile.
  • Variables. One Pakefile - one vars: array.

Target actions

target: actions just executes other targets, recursively. This is useful for grouping actions into targets, like this:
default:
  target: build
  target: bundle

build:
  shell:
    sudo python setup.py install

bundle:
  python:
    import myapp
    myapp.db.test()
    myapp.db.flush()
  shell:
    tar -cjf bundle.tar myapp/

deploy:
  target: default
  shell:
   fab deploy

P.S. fab is a deployment tool. Like this, but for other tasks.

Table Of Contents

Previous topic

Welcome to Pake’s documentation!

Next topic

Variables

This Page