Sha256: 03fabece484bd7eb123f95b7c3442038cbf5c58323b6513dd56bac227e1a29cf
Contents?: true
Size: 533 Bytes
Versions: 1
Compression:
Stored size: 533 Bytes
Contents
require 'evrone/ci/common' module Evrone module CI module Worker LocalBeforeScript = Struct.new(:app) do include Common::Helper::Shell def call(env) script = env.work_dir.join(".ci_before_script.sh") write_file script, env.job.message.before_script, 0700 code = bash file: script, chdir: env.work_dir, &env.job.method(:add_to_output) if code == 0 app.call env else -1 end 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/middlewares/local_before_script.rb |