lib/concourse-fuselage/step.rb in concourse-fuselage-0.5.0 vs lib/concourse-fuselage/step.rb in concourse-fuselage-0.5.1
- old
+ new
@@ -8,7 +8,17 @@
include ::Contracts::Core
include ::Contracts::Builtin
include Support::Source
include Support::Debugging
include Support::Validation
+
+ def output
+ fail NotImplementedError
+ end
+
+ def run
+ validated(output)
+ .tap { |string| STDOUT.puts string }
+ .tap { |string| STDERR.puts string if debugging? }
+ end
end
end