python - YAML file in Fabric -


with regards using fabric, in "tav's blog" here: http://tav.espians.com/fabric-python-with-cleaner-api-and-parallel-deployment-support.html

i've read fabric can support yaml config files.

env.config_file = 'deploy.yaml'

you can access yaml data using "env.config" variable so:

def get_latest_commit():     return urlopen(env.config.commits_server).read()   @task     def deploy():         cd(env.config.app_directory):         ... 

for reason can't working.

has used before? can give me simple explanation or example of how use these yaml configs in fabric files?

tav's blog custom fork of fabric wasn't pulled mainline. it's become outdated well.

the way you'd set these fabricrc file. talked here:

http://docs.fabfile.org/en/1.7/usage/fab.html?highlight=fabricrc#settings-files

and here

http://docs.fabfile.org/en/1.7/usage/fabfiles.html?highlight=fabricrc


Comments