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

Version Path
conjur-debify-3.0.3.pre.248 lib/conjur/debify/utils.rb
conjur-debify-3.0.3.pre.216 lib/conjur/debify/utils.rb
conjur-debify-3.0.3.pre.145 lib/conjur/debify/utils.rb
conjur-debify-3.0.3.pre.10 lib/conjur/debify/utils.rb
conjur-debify-3.0.3.pre.9 lib/conjur/debify/utils.rb
conjur-debify-3.0.3.pre.2005 lib/conjur/debify/utils.rb
conjur-debify-3.0.3.pre.1981 lib/conjur/debify/utils.rb
conjur-debify-3.0.3.pre.1971 lib/conjur/debify/utils.rb
conjur-debify-3.0.3.pre.1967 lib/conjur/debify/utils.rb
conjur-debify-3.0.3.pre.1965 lib/conjur/debify/utils.rb
conjur-debify-3.0.3.pre.1963 lib/conjur/debify/utils.rb
conjur-debify-3.0.3.pre.1961 lib/conjur/debify/utils.rb
conjur-debify-3.0.3.pre.1959 lib/conjur/debify/utils.rb
conjur-debify-3.0.3.pre.1957 lib/conjur/debify/utils.rb
conjur-debify-3.0.3.pre.1956 lib/conjur/debify/utils.rb
conjur-debify-3.0.3.pre.1954 lib/conjur/debify/utils.rb
conjur-debify-3.0.3.pre.1952 lib/conjur/debify/utils.rb
conjur-debify-3.0.3.pre.1950 lib/conjur/debify/utils.rb
conjur-debify-3.0.3.pre.1948 lib/conjur/debify/utils.rb
conjur-debify-3.0.3.pre.1946 lib/conjur/debify/utils.rb