require 'evrone/ci/common' module Evrone module CI module Worker LocalCreateDirs = Struct.new(:app) do include Common::Helper::Shell include Worker::Helper::Config def call(env) tmp_dir! env app.call env end private def tmp_dir!(env) env.tmp_dir = env.path_prefix.join(config.tmp_dir_name) .join(env.job.message.name) recreate env.tmp_dir end end end end end