class Vx::ContainerConnector::Local::Spawner

Attributes

work_dir[R]

Public Class Methods

new(work_dir) click to toggle source
# File lib/vx/container_connector/local/spawner.rb, line 12
def initialize(work_dir)
  @work_dir = work_dir
end

Public Instance Methods

id() click to toggle source
# File lib/vx/container_connector/local/spawner.rb, line 26
def id
  'local'
end
spawn(*args, &logger) click to toggle source
Calls superclass method
# File lib/vx/container_connector/local/spawner.rb, line 16
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