lib/stove/packager.rb in stove-4.1.0 vs lib/stove/packager.rb in stove-4.1.1
- old
+ new
@@ -95,10 +95,10 @@
end
tempfile.rewind
tempfile
ensure
- if defined?(metadata_json)
+ if defined?(metadata_json) && File.exist?(File.join(cookbook.path, 'metadata.rb'))
File.delete(metadata_json)
end
end
#