Sha256: 94b50180507f9b52ddb4dcec99c168d952649362c91a0f0061d25fa5c6c32189
Contents?: true
Size: 615 Bytes
Versions: 1
Compression:
Stored size: 615 Bytes
Contents
require 'json' require_relative 'step' module Fuselage class Check < Step Contract None => Maybe[HashOf[String, String]] def version config['version'] end Contract None => HashOf[String, String] def latest fail NotImplementedError end Contract HashOf[String, String] => ArrayOf[HashOf[String, String]] def since(version) fail NotImplementedError end Contract None => ArrayOf[HashOf[String, String]] def output version.nil? ? [latest] : since(version) end Contract None => String def run JSON.dump output end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
concourse-fuselage-0.1.0 | lib/concourse-fuselage/check.rb |