lib/concourse-fuselage/check.rb in concourse-fuselage-0.2.0 vs lib/concourse-fuselage/check.rb in concourse-fuselage-0.3.0
- old
+ new
@@ -18,14 +18,14 @@
fail NotImplementedError
end
Contract None => ArrayOf[HashOf[String, String]]
def output
- version.nil? ? [latest] : since(version)
+ JSON.dump version.nil? ? [latest] : since(version)
end
Contract None => String
def run
- p JSON.dump output
+ p output.tap { |string| STDERR.puts string if debugging? }
end
end
end