class Object

Constants

RootFolder
TEMPLATE

Public Instance Methods

get_reqs(current_dir) click to toggle source
# File lib/templates/default/environment.rb, line 3
def get_reqs(current_dir)
  Dir.foreach(current_dir) do |file|
    next if file.start_with?('.') || file.start_with?('environment.rb') || file.end_with?('spec.rb') # add additional filters here for files you don't want included
    if File.directory?(current_dir + '/' + file)
      next if file.start_with?('templates')
      get_reqs(current_dir+ '/' + file)
    else
      require_relative (current_dir + '/' + file) if file.end_with?('.rb')
    end
  end
end