directory - How to checkout a folder from git using a chef recipe -


i trying setup continuous integration git, chef on aws-opworks.

to checkout particular folder in git node "node_path". can use destination: tag destination directory cannot find out how specify source directory in git.

node_path = "/my/home/myprj/node" git node_path     repository "https://something.com/myco/myprj.git"     reference "prod"     action :sync     destination : node_path end 

here destination folder node symbolic link. can git check out folder, identify modified code pieces , copy new files over. want done automatically action :sync - how can done?

references have used are:

you use git resource , link resource:

git '/srv/myprj'   repository 'https://something.com/myco/myprj.git'   branch 'prod' end  link '/my/home/myprj/node'   '/srv/myprj/node' end 

Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

python 3.x - PyQt5 - Signal : pyqtSignal no method connect -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)