Skip to content

Instantly share code, notes, and snippets.

@andrewgross
Created September 12, 2012 14:48
Show Gist options
  • Save andrewgross/3707137 to your computer and use it in GitHub Desktop.
Save andrewgross/3707137 to your computer and use it in GitHub Desktop.
Git Deploy
git "update #{program}" do
user node['username']
group node['username']
repository "[email protected]:Yipit/#{program}.git"
reference branch
destination "/var/www/#{program}"
ssh_wrapper "/home/#{node['username']}/.ssh/#{program}_ssh_wrapper.sh"
action :sync
ignore_failure true
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment