class Berkshelf::Packager::RelativeTarWriter
:nodoc:
turns absolute paths into relative ones.
A private decorator for Minitar::Writer that
def initialize(io, base_path)
turns absolute paths into relative ones.
A private decorator for Minitar::Writer that
def initialize(io, base_path) @base_path = Pathname.new(base_path) super(Minitar::Writer.new(io)) end
def relative_path(path)
def relative_path(path) Pathname.new(path).relative_path_from(base_path).to_s end