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.1.pre.1825 lib/conjur/debify/utils.rb
conjur-debify-3.0.1.pre.1824 lib/conjur/debify/utils.rb
conjur-debify-3.0.1.pre.1823 lib/conjur/debify/utils.rb
conjur-debify-3.0.1.pre.1820 lib/conjur/debify/utils.rb
conjur-debify-3.0.1.pre.1818 lib/conjur/debify/utils.rb
conjur-debify-3.0.1.pre.1816 lib/conjur/debify/utils.rb
conjur-debify-3.0.1.pre.1815 lib/conjur/debify/utils.rb
conjur-debify-3.0.1.pre.1813 lib/conjur/debify/utils.rb
conjur-debify-3.0.1.pre.1811 lib/conjur/debify/utils.rb
conjur-debify-3.0.1.pre.1809 lib/conjur/debify/utils.rb
conjur-debify-3.0.1.pre.1807 lib/conjur/debify/utils.rb
conjur-debify-3.0.1.pre.1805 lib/conjur/debify/utils.rb
conjur-debify-3.0.1.pre.1803 lib/conjur/debify/utils.rb
conjur-debify-3.0.1.pre.1801 lib/conjur/debify/utils.rb
conjur-debify-3.0.1.pre.1799 lib/conjur/debify/utils.rb
conjur-debify-3.0.1.pre.1797 lib/conjur/debify/utils.rb
conjur-debify-3.0.1.pre.1795 lib/conjur/debify/utils.rb
conjur-debify-3.0.1.pre.1793 lib/conjur/debify/utils.rb
conjur-debify-3.0.1.pre.1791 lib/conjur/debify/utils.rb
conjur-debify-3.0.1.pre.1789 lib/conjur/debify/utils.rb