Module: DBuddy
- Defined in:
- lib/dbuddy.rb,
lib/dbuddy/version.rb
Constant Summary collapse
- VERSION =
"0.1.0"
Class Method Summary collapse
Class Method Details
.run(connection, *paths) ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 |
# File 'lib/dbuddy.rb', line 2 def self.run(connection, *paths) paths.each do |path| puts "Processing #{path}" begin connection.execute(File.read(path), "DBuddy: Reloading #{path}") rescue => e puts "Caught error" puts e. puts e.backtrace end end end |