lib/concourse-fuselage/support/config.rb in concourse-fuselage-0.3.2 vs lib/concourse-fuselage/support/config.rb in concourse-fuselage-0.4.0

- old
+ new

@@ -7,10 +7,12 @@ include ::Contracts::Core include ::Contracts::Builtin Contract None => Hash def config - @config ||= JSON.load STDIN || {} + @config ||= (JSON.load STDIN || {}).tap do |payload| + File.write 'config.json', payload if debugging? + end end end end end