lib/zen/task/db.rake in zen-0.3b1 vs lib/zen/task/db.rake in zen-0.3
- old
+ new
@@ -11,11 +11,13 @@
Zen::Package::REGISTERED.each do |name, pkg|
# Get the migration directory
if pkg.respond_to?(:migrations) and !pkg.migrations.nil?
dir = pkg.migrations
else
- puts "Skipping #{pkg.title} as it has no migrations directory"
+ Ramaze::Log.info(
+ "Skipping #{pkg.title} as it has no migrations directory"
+ )
next
end
if !File.directory?(dir)
abort "The migration directory #{dir} doesn't exist."
@@ -43,10 +45,12 @@
packages.each do |name, pkg|
# Get the migration directory
if pkg.respond_to?(:migrations) and !pkg.migrations.nil?
dir = pkg.migrations
else
- puts "Skipping #{pkg.title} as it has no migrations directory"
+ Ramaze::Log.info(
+ "Skipping #{pkg.title} as it has no migrations directory"
+ )
next
end
if !File.directory?(dir)
abort "The migration directory #{dir} doesn't exist."