Sha256: f3c17470556f4cb573a0541c266048a8fee324aec06b28ea13063383ad1c4f52
Contents?: true
Size: 390 Bytes
Versions: 11
Compression:
Stored size: 390 Bytes
Contents
require 'rubygems/package' module Conjur::Debify::Utils module_function # copy a file from container to the current working directory def copy_from_container container, path tar = StringIO.new container.copy(path) { |chunk| tar.write chunk } tar.rewind Gem::Package::TarReader.new(tar).each do |entry| File.write entry.full_name, entry.read end end end
Version data entries
11 entries across 11 versions & 1 rubygems