Sha256: 6025b0ed871cbd394795b8e53efb11aa3b1311106e221f26f6091da2cd08d40c
Contents?: true
Size: 277 Bytes
Versions: 14
Compression:
Stored size: 277 Bytes
Contents
module FileActions private def copy(type, name:, dest:, **options) self.destination_root = dest name_in_dest = options.fetch(:name_in_dest, name) if type == :file copy_file name, name_in_dest else directory name, name_in_dest end end end
Version data entries
14 entries across 14 versions & 1 rubygems