diff options
author | sersut <serdar@opscode.com> | 2013-05-28 14:52:43 -0700 |
---|---|---|
committer | sersut <serdar@opscode.com> | 2013-05-30 13:44:50 -0700 |
commit | aeee4bf96582769207780311b7b882c387656567 (patch) | |
tree | 7b4f639d6db0e6bafe17fd511d02239022a7a2e4 /lib/chef/file_content_management | |
parent | f5128d2290b5bb7646f97e61e246b7b09a848a1b (diff) | |
download | chef-aeee4bf96582769207780311b7b882c387656567.tar.gz |
Remove binmode property from file / remote_directory resources and always operate in binmode.
Diffstat (limited to 'lib/chef/file_content_management')
-rw-r--r-- | lib/chef/file_content_management/tempfile.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/chef/file_content_management/tempfile.rb b/lib/chef/file_content_management/tempfile.rb index d109e3f51f..0bb7f3a6fa 100644 --- a/lib/chef/file_content_management/tempfile.rb +++ b/lib/chef/file_content_management/tempfile.rb @@ -36,7 +36,9 @@ class Chef def tempfile_open tf = ::Tempfile.open(tempfile_basename, tempfile_dirname) - tf.binmode if new_resource.binmode + # We always process the tempfile in binmode so that we + # preserve the line endings of the content. + tf.binmode tf end |