Class: Berkshelf::Packager::RelativeTarWriter

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/berkshelf/packager.rb

Overview

A private decorator for Minitar::Writer that turns absolute paths into relative ones.

Instance Method Summary collapse

Constructor Details

#initialize(io, base_path) ⇒ RelativeTarWriter

:nodoc:



85
86
87
88
# File 'lib/berkshelf/packager.rb', line 85

def initialize(io, base_path)
  @base_path = Pathname.new(base_path)
  super(Minitar::Writer.new(io))
end