Sha256: 120209e4e93a7ff5fb6a858a81668a5ae349c0db9cc9360586b4ae1de76d9b83

Contents?: true

Size: 439 Bytes

Versions: 1

Compression:

Stored size: 439 Bytes

Contents

module Evrone
  module CI
    class Router
      module Middleware

        LogBuild = Struct.new(:app) do

          include Router::Helper::Logger

          def call(env)
            logger.tagged("BUILD #{env.build.message.id}") do
              logger.info "starting build"
              rs = app.call env
              logger.info "done build"
              rs
            end
          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/log_build.rb