summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2020-10-29 10:04:51 -0700
committerGitHub <noreply@github.com>2020-10-29 10:04:51 -0700
commitcaf7c430311eb583cee71eba4a075ea1e6bc3832 (patch)
tree2c70eb1dac4ea8cae5d61012289ad34febe249fb
parentef9649e543b6218053fc98208ce884cc81882ce1 (diff)
parentf310f28a15f2f97abf0b1faba6b79be466f1837b (diff)
downloadchef-caf7c430311eb583cee71eba4a075ea1e6bc3832.tar.gz
Merge pull request #10575 from chef/spelling
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/chef/resource/scm/git.rb16
-rw-r--r--lib/chef/resource/scm/subversion.rb2
2 files changed, 9 insertions, 9 deletions
diff --git a/lib/chef/resource/scm/git.rb b/lib/chef/resource/scm/git.rb
index 53f1a1f44a..8293d1ed4a 100644
--- a/lib/chef/resource/scm/git.rb
+++ b/lib/chef/resource/scm/git.rb
@@ -32,7 +32,7 @@ class Chef
**Use the git mirror**
```ruby
- git '/opt/mysources/couch' do
+ git '/opt/my_sources/couch' do
repository 'git://git.apache.org/couchdb.git'
revision 'master'
action :sync
@@ -51,7 +51,7 @@ class Chef
end
git '/home/user/deployment' do
- repository 'git@github.com:gitsite/deployment.git'
+ repository 'git@github.com:git_site/deployment.git'
revision branch_name
action :sync
user 'user'
@@ -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,18 +90,18 @@ 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
```
**Pass in environment variables**
```ruby
- git '/opt/mysources/couch' do
+ git '/opt/my_sources/couch' do
repository 'git://git.apache.org/couchdb.git'
revision 'master'
environment 'VAR' => 'whatever'
diff --git a/lib/chef/resource/scm/subversion.rb b/lib/chef/resource/scm/subversion.rb
index 8399225fdf..db20787aa5 100644
--- a/lib/chef/resource/scm/subversion.rb
+++ b/lib/chef/resource/scm/subversion.rb
@@ -36,7 +36,7 @@ class Chef
subversion 'CouchDB Edge' do
repository 'http://svn.apache.org/repos/asf/couchdb/trunk'
revision 'HEAD'
- destination '/opt/mysources/couch'
+ destination '/opt/my_sources/couch'
action :sync
end
```