Method: ImportRuby.run_all

Defined in:
lib/importRuby.rb

.run_all(_dir) ⇒ Object



9
10
11
12
13
14
15
# File 'lib/importRuby.rb', line 9

def ImportRuby.run_all(_dir)
  puts "start run"
  Dir[File.expand_path(_dir, Dir.pwd) + "/**/*.rb"].each do |file|
    puts "run #{file}"
    system("ruby #{file}")
  end
end