Sha256: 86d1cbba5aff36bd93b405c180fd0e36e29f59e6923d345bbde8a917c36a2a66
Contents?: true
Size: 600 Bytes
Versions: 3
Compression:
Stored size: 600 Bytes
Contents
require 'vx/lib/shell' require 'stringio' module Vx module Lib module Container class Local Spawner = Struct.new(:work_dir) do include Lib::Shell include Lib::Container::Upload def exec(script, options = {}, &logger) Dir.chdir work_dir do sh.exec upload(script, "~/build.sh", mode: '0755'), options.merge(home: work_dir) sh.exec("~/build.sh", options.merge(home: work_dir), &logger) end end def id work_dir end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
vx-lib-container-0.5.11 | lib/vx/lib/container/local/spawner.rb |
vx-lib-container-0.5.10 | lib/vx/lib/container/local/spawner.rb |
vx-lib-container-0.5.9 | lib/vx/lib/container/local/spawner.rb |