Sha256: fe6b4b75b3a4bb7faba9696bad77fc74c7899152daec75b562cac5b03b0c96c5

Contents?: true

Size: 528 Bytes

Versions: 10

Compression:

Stored size: 528 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 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

10 entries across 10 versions & 1 rubygems

Version Path
evrone-ci-worker-0.2.0.pre14 lib/evrone/ci/worker/docker.rb
evrone-ci-worker-0.2.0.pre13 lib/evrone/ci/worker/docker.rb
evrone-ci-worker-0.2.0.pre12 lib/evrone/ci/worker/docker.rb
evrone-ci-worker-0.2.0.pre11 lib/evrone/ci/worker/docker.rb
evrone-ci-worker-0.2.0.pre10 lib/evrone/ci/worker/docker.rb
evrone-ci-worker-0.2.0.pre9 lib/evrone/ci/worker/docker.rb
evrone-ci-worker-0.2.0.pre8 lib/evrone/ci/worker/docker.rb
evrone-ci-worker-0.2.0.pre7 lib/evrone/ci/worker/docker.rb
evrone-ci-worker-0.2.0.pre6 lib/evrone/ci/worker/docker.rb
evrone-ci-worker-0.2.0.pre5 lib/evrone/ci/worker/docker.rb