make_the_dir.patch


SUBMITTED BY: antfuentes87

DATE: Nov. 25, 2015, 12:48 a.m.

FORMAT: Text only

SIZE: 1.7 kB

HITS: 703

  1. diff --git a/cookbooks/swift/recipes/source.rb b/cookbooks/swift/recipes/source.rb
  2. index b9fd1fe..66ca288 100644
  3. --- a/cookbooks/swift/recipes/source.rb
  4. +++ b/cookbooks/swift/recipes/source.rb
  5. @@ -14,32 +14,40 @@
  6. # limitations under the License.
  7. +# ensure source_root
  8. +
  9. +directory "#{node['source_root']}" do
  10. + owner "vagrant"
  11. + group "vagrant"
  12. + action :create
  13. +end
  14. +
  15. # python install
  16. execute "git python-swiftclient" do
  17. cwd "#{node['source_root']}"
  18. - command "git clone -b #{node['swiftclient_repo_branch']} #{node['swiftclient_repo']}"
  19. + command "sudo -u vagrant git clone -b #{node['swiftclient_repo_branch']} #{node['swiftclient_repo']}"
  20. creates "#{node['source_root']}/python-swiftclient"
  21. action :run
  22. end
  23. execute "git swift-bench" do
  24. cwd "#{node['source_root']}"
  25. - command "git clone -b #{node['swift_bench_repo_branch']} #{node['swift_bench_repo']}"
  26. + command "sudo -u vagrant git clone -b #{node['swift_bench_repo_branch']} #{node['swift_bench_repo']}"
  27. creates "#{node['source_root']}/swift-bench"
  28. action :run
  29. end
  30. execute "git swift" do
  31. cwd "#{node['source_root']}"
  32. - command "git clone -b #{node['swift_repo_branch']} #{node['swift_repo']}"
  33. + command "sudo -u vagrant git clone -b #{node['swift_repo_branch']} #{node['swift_repo']}"
  34. creates "#{node['source_root']}/swift"
  35. action :run
  36. end
  37. execute "git swift-specs" do
  38. cwd "#{node['source_root']}"
  39. - command "git clone -b #{node['swift_specs_repo_branch']} #{node['swift_specs_repo']}"
  40. + command "sudo -u vagrant git clone -b #{node['swift_specs_repo_branch']} #{node['swift_specs_repo']}"
  41. creates "#{node['source_root']}/swift-specs"
  42. action :run
  43. end

comments powered by Disqus