Sha256: 9e32fcd8bbde09ab784dabe3a626f0bc5a43feaff59354d1e560943b725d4df0
Contents?: true
Size: 750 Bytes
Versions: 3
Compression:
Stored size: 750 Bytes
Contents
require 'contracts' module GitHubStatus module Support module Params include ::Contracts::Core include ::Contracts::Builtin Contract None => String def path @path ||= params.fetch 'path' rescue KeyError STDERR.puts 'Params is missing path' abort end Contract None => String def state @state ||= params.fetch 'state' rescue KeyError STDERR.puts 'Params is missing state' abort end Contract None => String def context @context ||= params.fetch 'context', 'concourse' end Contract None => String def description @description ||= params.fetch 'description', '' end end end end
Version data entries
3 entries across 3 versions & 1 rubygems