lib/bones/main.rb
# Returns a list of the files to copy from the bones/data directory to
# the new project directory
#
Returns a list of the files to copy from the bones/data directory to
the new project directory
Returns a list of the files to copy from the bones / data directory to the new project directory
def files_to_copy
    rgxp = %r/\A#{data}\/?/o
    exclude = %r/tmp$|bak$|~$|CVS|\.svn/o
    ary = Dir.glob(File.join(data, '**', '*')).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 #{ data } \/ ? /o exclude = %r/ tmp$|bak$|~$|CVS| \. svn /o ary = Dir . glob ( File . join ( data , '**' , '*' ) ) . 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 bones/data directory to
the new project directory
Returns a list of the files to copy from the bones / data directory to the new project directory