Sha256: a509a49c49812573f313625d846dc6948137d642b705181613adae3e34adfecb
Contents?: true
Size: 716 Bytes
Versions: 4
Compression:
Stored size: 716 Bytes
Contents
require 'yaml' def create(who, *args) options = args.last.is_a?(Hash) ? args.pop : {} case who when :local_repo Evrone::CI::Worker.root.join("fixtures/repo").to_s when :message name = args.shift klass = Evrone::CI::Message.const_get name klass.test_message options when :job message = options[:message] || create(:message, 'PerformJob', options) Evrone::CI::Worker::Job.new message when :working_dirs Evrone::CI::Worker::WorkingDirs.create args.shift, args.shift || '/tmp/.test' when :git build = args.shift path = args.shift Evrone::CI::SCM::Git.new build.src, build.sha, path, deploy_key: build.deploy_key, &build.method(:add_to_output) end end
Version data entries
4 entries across 4 versions & 1 rubygems