Method: Hanami::Utils::Files.cp
- Defined in:
- lib/hanami/utils/files.rb
.cp(source, destination) ⇒ Object
Copies source into destination. All the intermediate directories are created. If the destination already exists, it overrides the contents.
46 47 48 49 |
# File 'lib/hanami/utils/files.rb', line 46 def self.cp(source, destination) mkdir_p(destination) FileUtils.cp(source, destination) end |