Sha256: 37d9c24435f4943ed61314bf293698b46de237e910aff456bd1016ae7b33b196
Contents?: true
Size: 563 Bytes
Versions: 1
Compression:
Stored size: 563 Bytes
Contents
require 'concourse-fuselage' require 'contracts' require_relative 'core' require_relative 'support/git' require_relative 'support/github' require_relative 'support/params' module GitHubStatus class In < Fuselage::In include Core include Support::Params include Support::Git include Support::GitHub def status github .statuses(repo, sha) .select { |status| status.context == context } .map(&:state) .first end def fetch! File.write "#{workdir}/#{context}.state", state end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
concourse-github-status-0.4.0 | lib/github-status/in.rb |