Sha256: 6c126f8840f586ff02ca0323605c1386ac6ff851527cf1c06e6efb2a743b7d33
Contents?: true
Size: 370 Bytes
Versions: 2
Compression:
Stored size: 370 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.length == 0 ? ENV.fetch('TRAVIS_COMMIT') : sha end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lois-0.1.7 | lib/lois/ci/travis.rb |
lois-0.1.6 | lib/lois/ci/travis.rb |