Skip to content

Commit

Permalink
Merge pull request #2 from portertech/disable_extended_file_attributes
Browse files Browse the repository at this point in the history
[disable_extended_file_attributes] OS X needs COPYFILE_DISABLE=true
  • Loading branch information
iain committed Oct 26, 2011
2 parents 9f47e72 + d7fccbc commit 297a394
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/capistrano_chef_solo.rb
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,8 @@ def copy_cookbooks
tar_file = Tempfile.new("cookbooks.tar")
begin
tar_file.close
system "tar -cjf #{tar_file.path} #{cookbooks.join(' ')}"
env_vars = RUBY_PLATFORM.downcase.include?('darwin') ? "COPYFILE_DISABLE=true" : ""
system "#{env_vars} tar -cjf #{tar_file.path} #{cookbooks.join(' ')}"
upload tar_file.path, "/tmp/chef/cookbooks.tar", :via => :scp
run "cd /tmp/chef && tar -xjf cookbooks.tar"
ensure
Expand Down

0 comments on commit 297a394

Please sign in to comment.