Class: BatchProcessing

Inherits:
Object
  • Object
show all
Defined in:
app/models/utils/batchprocessing.rb

Class Method Summary collapse

Class Method Details

.process(directory) ⇒ Object



3
4
5
6
7
8
9
# File 'app/models/utils/batchprocessing.rb', line 3

def self.process(directory)
	directory = directory.chomp('/')
  Dir.glob(directory + "/**/*.{rb,js}") do |file|
    next if file == '.' or file == '..'
    CommandLineController.run(file)
  end
end