Vcs commands


#1

Not sure if it was discussed elsewhere. I need an ability to issue git or hg
commands, aka git pull / git push. Do we have such inbuilt functionality,
without wrappers aka shell script that runs git pull and parses the output?


#2

http://docs.getchef.com/resource_git.html


Daniel DeLeo

On Friday, November 7, 2014 at 10:28 AM, ror6ax@gmail.com wrote:

Not sure if it was discussed elsewhere. I need an ability to issue git or hg
commands, aka git pull / git push. Do we have such inbuilt functionality,
without wrappers aka shell script that runs git pull and parses the output?


#3

I saw that. Not really sure why options are not push, pull, branch and
other defaults?

2014-11-07 20:29 GMT+02:00 Daniel DeLeo dan@kallistec.com:

http://docs.getchef.com/resource_git.html


Daniel DeLeo

On Friday, November 7, 2014 at 10:28 AM, ror6ax@gmail.com wrote:

Not sure if it was discussed elsewhere. I need an ability to issue git
or hg
commands, aka git pull / git push. Do we have such inbuilt functionality,
without wrappers aka shell script that runs git pull and parses the
output?


#4

On Friday, November 7, 2014 at 10:38 AM, gregory grey wrote:

I saw that. Not really sure why options are not push, pull, branch and other defaults?

Chef doesn’t offer a way to push code, as it’s designed more for maintaining servers.

As for pulling code, it’s not conducive to how chef works. What you want to do is ensure you have a local copy of the repo checked out to a given commit, which is what the git resource does. Chef is all about ensuring your system is in a specific state, so you describe what the system is supposed to be, not how it gets there.


Daniel DeLeo