Skip to content

Instantly share code, notes, and snippets.

@jprovaznik
Created June 10, 2015 11:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jprovaznik/efbed9f298672f9c1ed9 to your computer and use it in GitHub Desktop.
Save jprovaznik/efbed9f298672f9c1ed9 to your computer and use it in GitHub Desktop.
find_all_files_in_tpldir.each do |fname|
content = fname.readlines
path = fname.basedir
content.gsub(/get_file: (.*)/, "get_file: basedir/$1")
files[basedir/$1] = content
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment