Sha256: 276ed8a6071ee2f645325778a3ce07749bba23fefa94338afa93d3778ee30e0f
Contents?: true
Size: 648 Bytes
Versions: 21
Compression:
Stored size: 648 Bytes
Contents
module Vx module ContainerConnector class Docker class Spawner attr_reader :container, :ssh, :work_dir def initialize(container, ssh, work_dir) @container = container @ssh = ssh @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) ssh.spawn(env, cmd, options, &logger) end def id container.id end end end end end
Version data entries
21 entries across 21 versions & 1 rubygems