Sha256: 176f611a471b88d96c1d876b794c69d861792a08c21bb75d3412871e2eae5847

Contents?: true

Size: 345 Bytes

Versions: 1

Compression:

Stored size: 345 Bytes

Contents

require 'evrone/ci/common'

module Evrone
  module CI
    class Router
      module Middleware

        FetchCommitInfo = Struct.new(:app) do

          def call(env)
            if env.scm
              env.build.commit_info = env.scm.commit_info
            end
            app.call env
          end

        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
evrone-ci-router-0.2.0.pre0 lib/evrone/ci/router/middleware/fetch_commit_info.rb