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