Sha256: eef05f4f0c36b3b530aaf3e419094fd94eef3d57a7201b7359448534663206c0
Contents?: true
Size: 565 Bytes
Versions: 9
Compression:
Stored size: 565 Bytes
Contents
module GeneratorSupport def create_file(file_path, content = '') full_file_path = File.expand_path(file_path, destination_root) FileUtils.mkdir_p File.dirname(full_file_path) File.write full_file_path, content end def touch_file(file_path) full_file_path = File.expand_path(file_path, destination_root) FileUtils.mkdir_p File.dirname(full_file_path) FileUtils.touch full_file_path end def cleanup_destination_root FileUtils.rm_rf destination_root end def content_for(file_name) File.read(file(file_name)) end end
Version data entries
9 entries across 9 versions & 1 rubygems