vendor/gems/bones-2.4.2/lib/bones/app/file_manager.rb
# Returns a list of the files to copy from the source directory to
# the destination directory.
#
Returns a list of the files to copy from the source directory to
the destination directory.
Returns a list of the files to copy from the source directory to the destination directory .
def _files_to_copy
    rgxp = %r/\A#{source}\/?/
    exclude = %r/tmp$|bak$|~$|CVS|\.svn/
    ary = Dir.glob(File.join(source, '**', '*.*'), File::FNM_DOTMATCH).map do |filename|
      next if exclude =~ filename
      next if test(?d, filename)
      filename.sub rgxp, ''
    end
    ary.compact!
    ary.sort!
    ary
  end
def _files_to_copy rgxp = %r/ \A #{ source } \/ ? / exclude = %r/ tmp$|bak$|~$|CVS| \. svn / ary = Dir . glob ( File . join ( source , '**' , '*.*' ) , File :: FNM_DOTMATCH ) . map do | filename | next if exclude =~ filename next if test ( ?d , filename ) filename . sub rgxp , '' end ary . compact! ary . sort! ary end
Returns a list of the files to copy from the source directory to
the destination directory.
Returns a list of the files to copy from the source directory to the destination directory .