Method: Template::Spec#target_file

Defined in:
lib/template/spec.rb

#target_file(source_dir, source_file, target_dir) ⇒ Object



233
234
235
236
237
# File 'lib/template/spec.rb', line 233

def target_file(source_dir, source_file, target_dir)
  stripped_path = source_file.gsub(source_dir, '')
  customizable_path = replace_tokens(stripped_path)
  File.join(target_dir, customizable_path)
end