lib/rake/funnel/support/copier.rb in rake-funnel-0.18.0 vs lib/rake/funnel/support/copier.rb in rake-funnel-0.19.0
- old
+ new
@@ -18,9 +18,10 @@
RakeFileUtils.cp(source, target_path, preserve: true)
end
end
private
+
def target_path(file, common_path, target)
target_relative = Pathname.new(file).relative_path_from(Pathname.new(common_path)).to_s
File.join(target, target_relative)
end
end