Sha256: 1f78f0f468c9193b8b1fe4147e7707dfc62b4d363f5c77cf64c820c675c1ba44
Contents?: true
Size: 714 Bytes
Versions: 1
Compression:
Stored size: 714 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 LocalBeforeScript 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
evrone-ci-worker-0.2.0.pre0 | lib/evrone/ci/worker/local.rb |