summaryrefslogtreecommitdiff
path: root/lib/chef/resource/scm/git.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/resource/scm/git.rb')
-rw-r--r--lib/chef/resource/scm/git.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/chef/resource/scm/git.rb b/lib/chef/resource/scm/git.rb
index 53f1a1f44a..dc950b0624 100644
--- a/lib/chef/resource/scm/git.rb
+++ b/lib/chef/resource/scm/git.rb
@@ -71,7 +71,7 @@ class Chef
```ruby
git "#{Chef::Config[:file_cache_path]}/ruby-build" do
- repository 'git://github.com/sstephenson/ruby-build.git'
+ repository 'git://github.com/rbenv/ruby-build.git'
revision 'master'
action :sync
end
@@ -90,11 +90,11 @@ class Chef
**Notify a resource post-checkout**
```ruby
- git "#{Chef::Config[:file_cache_path]}/libvpx" do
- repository node[:libvpx][:git_repository]
- revision node[:libvpx][:git_revision]
+ git "#{Chef::Config[:file_cache_path]}/my_app" do
+ repository node['my_app']['git_repository']
+ revision node['my_app']['git_revision']
action :sync
- notifies :run, 'bash[compile_libvpx]', :immediately
+ notifies :run, 'bash[compile_my_app]', :immediately
end
```