Sha256: 2bdcc51d2bd77666520a2ea10aebdaca01d5965e5cb89b59c13c6ba5b3bd5d9f
Contents?: true
Size: 673 Bytes
Versions: 1
Compression:
Stored size: 673 Bytes
Contents
require 'evrone/common/spawn' module Evrone module CI module ContainerConnector class Local class Spawner include Evrone::Common::Spawn attr_reader :work_dir def initialize(work_dir) @work_dir = work_dir end def spawn(*args, &logger) env = args.first.is_a?(Hash) ? args.shift : {} options = args.last.is_a?(Hash) ? args.pop : {} cmd = args options.merge!(chdir: work_dir) super(env, cmd, options, &logger) end def id 'local' end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
evrone-ci-container_connector-0.2.0.pre28 | lib/evrone/ci/container_connector/local/spawner.rb |