Method: Ing::Files#relative_to_original_destination_root

Defined in:
lib/ing/files.rb

#relative_to_original_destination_root(path, remove_dot = true) ⇒ Object

Returns the given path relative to the absolute root (ie, root where the script started).



90
91
92
93
94
95
96
97
# File 'lib/ing/files.rb', line 90

def relative_to_original_destination_root(path, remove_dot=true)
  path = path.dup
  if path.gsub!(destination_root, '.')
    remove_dot ? (path[2..-1] || '') : path
  else
    path
  end
end