Sha256: ede7fb59358a4e042aaa60a9dd59da3c20e240a8e1f5371972f8e4d4f3e0b133

Contents?: true

Size: 590 Bytes

Versions: 2

Compression:

Stored size: 590 Bytes

Contents

require 'evrone/ci/common'

module Evrone
  module CI
    module Worker

      class Docker

        include Common::Helper::Middlewares

        attr_reader :job

        middlewares do
          use LogJob
          use UpdateJobStatus
          use DockerStartContainer
          use DockerFetchRepo
          use DockerWebdavCache
          use DockerScript
        end

        def initialize(job, _)
          @job         = job
        end

        def perform
          env = OpenStruct.new job: job
          run_middlewares(env){ |_| 0 }
        end

      end

    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
evrone-ci-worker-0.2.0.pre4 lib/evrone/ci/worker/docker.rb
evrone-ci-worker-0.2.0.pre3 lib/evrone/ci/worker/docker.rb