lib/omnibus/file_syncer.rb
def relative_path_for(path, parent)
      Pathname.new(path).relative_path_from(Pathname.new(parent)).to_s
    end
def relative_path_for(path, parent)
      Pathname.new(path).relative_path_from(Pathname.new(parent)).to_s
    end
The relative path of the given +path+ to the +parent+.

 @param [String] path
   the path to get relative with
 @param [String] parent
   the parent where the path is contained (hopefully)

 @return [String]