Sha256: d60d5e39f7b38983c9ca22860db6b138e4b55d0df0e4e37fc9012cf3b57ac577

Contents?: true

Size: 281 Bytes

Versions: 6

Compression:

Stored size: 281 Bytes

Contents

module Lois
  module Ci
    class Circleci
      def organization
        ENV.fetch('CIRCLE_PROJECT_USERNAME')
      end

      def repository
        ENV.fetch('CIRCLE_PROJECT_REPONAME')
      end

      def commit_sha
        ENV.fetch('CIRCLE_SHA1')
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
lois-0.1.8 lib/lois/ci/circleci.rb
lois-0.1.7 lib/lois/ci/circleci.rb
lois-0.1.6 lib/lois/ci/circleci.rb
lois-0.1.5 lib/lois/ci/circleci.rb
lois-0.1.4 lib/lois/ci/circleci.rb
lois-0.1.3 lib/lois/ci/circleci.rb