Sha256: fcf1847a5777eb4d8790db89e720c4d9ad9a2643b9a392596e5df3085a664e70
Contents?: true
Size: 597 Bytes
Versions: 2
Compression:
Stored size: 597 Bytes
Contents
module ProjectFiles def touch(filename) path = File.join(project_path, filename) dirname = File.dirname(path) FileUtils.mkdir_p(dirname) FileUtils.touch(path) end def rm(filename) path = File.join(project_path, filename) FileUtils.rm_rf(path) end def copy_file(from_in_templates, to_in_project) destination = File.join(project_path, to_in_project) destination_dirname = File.dirname(destination) FileUtils.mkdir_p(destination_dirname) FileUtils.cp( File.join(root_path, "templates", from_in_templates), destination ) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
suspenders-1.55.1 | spec/support/project_files.rb |
suspenders-1.55.0 | spec/support/project_files.rb |