Sha256: 22f4517ccbc7ffda67d9dcf85974f97740f2788d0107471aa9e4eabb6bad161a
Contents?: true
Size: 682 Bytes
Versions: 3
Compression:
Stored size: 682 Bytes
Contents
require 'evrone/ci/common' require 'pathname' module Evrone module CI module Worker class Local include Common::Helper::Middlewares attr_reader :job, :path_prefix middlewares do use LogJob use UpdateJobStatus use LocalCreateDirs use LocalFetchRepo use LocalScript end def initialize(job, path_prefix) @job = job @path_prefix = Pathname.new(path_prefix).expand_path end def perform env = OpenStruct.new job: job, path_prefix: path_prefix run_middlewares(env){ |_| 0 } end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
evrone-ci-worker-0.2.0.pre4 | lib/evrone/ci/worker/local.rb |
evrone-ci-worker-0.2.0.pre3 | lib/evrone/ci/worker/local.rb |
evrone-ci-worker-0.2.0.pre1 | lib/evrone/ci/worker/local.rb |