lib/ridley/chef/cookbook.rb in ridley-5.1.0 vs lib/ridley/chef/cookbook.rb in ridley-5.1.1
- old
+ new
@@ -117,10 +117,10 @@
#
# @return [String]
# path to the compiled metadata
def compile_metadata(out = self.path)
filepath = File.join(out, Metadata::COMPILED_FILE_NAME)
- File.open(filepath, "w+") do |f|
+ File.open(filepath, "wb+") do |f|
f.write(metadata.to_json)
end
filepath
end