Sha256: 1bd98dda3b821900f3396b4640e524ea059cea2097f7d41a6392bcf7dba93731
Contents?: true
Size: 397 Bytes
Versions: 144
Compression:
Stored size: 397 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.archive_out(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
144 entries across 144 versions & 1 rubygems