# File lib/rubigen/commands.rb, line 283 def folder(template_path, path=nil, options = {}) template_path = "/" if template_path.blank? source = source_path(template_path) files = Dir[source + '/*'].select { |file| File.file? file }.map { |file| file.sub(/^#{source}/,"") } files.each do |file_name| file "#{template_path}#{file_name}", "#{path}#{file_name}", options end system("git add -v #{relative_destination}") if options[:git] end