Sha256: 13b4ff614469d9cd2f9641559af250ddb6483faa066b43b0743089370ee03298
Contents?: true
Size: 365 Bytes
Versions: 1
Compression:
Stored size: 365 Bytes
Contents
module Lois module Ci class Travis def organization ENV.fetch('TRAVIS_REPO_SLUG').split('/')[0] end def repository ENV.fetch('TRAVIS_REPO_SLUG').split('/')[1] end def commit_sha sha = ENV.fetch('TRAVIS_PULL_REQUEST_SHA') sha.empty? ? ENV.fetch('TRAVIS_COMMIT') : sha end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lois-0.1.8 | lib/lois/ci/travis.rb |