Skip to content

Instantly share code, notes, and snippets.

@adamhjk
Created August 9, 2010 18:45
Show Gist options
  • Save adamhjk/515893 to your computer and use it in GitHub Desktop.
Save adamhjk/515893 to your computer and use it in GitHub Desktop.
deploy_revision 'chef' do
repository '[email protected]:opscode/chef'
symlink_before_migrate Hash.new
deploy_to '/srv/chef'
migrate false
end
rsync "deployment" do
hosts search(:nodes, "application:foo")
from '/srv/chef'
to '/srv/chef'
action :nothing
subscribes :sync, resources(:deploy_revision => app['id']), :immediately
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment