lib/evrone/ci/worker/local.rb in evrone-ci-worker-0.2.0.pre27 vs lib/evrone/ci/worker/local.rb in evrone-ci-worker-0.2.0.pre28
- old
+ new
@@ -7,26 +7,25 @@
class Local
include Common::Helper::Middlewares
- attr_reader :job, :path_prefix
+ attr_reader :job
middlewares do
use LogJob
use UpdateJobStatus
use Timeout
- use LocalCreateDirs
- use LocalScript
+ use StartConnector
+ use RunScript
end
- def initialize(job, path_prefix)
- @job = job
- @path_prefix = Pathname.new(path_prefix).expand_path
+ def initialize(job, _)
+ @job = job
end
def perform
- env = OpenStruct.new job: job, path_prefix: path_prefix
+ env = OpenStruct.new job: job
run_middlewares(env){ |_| 0 }
end
end