lib/zen/task/proto.rake in zen-0.2.8 vs lib/zen/task/proto.rake in zen-0.3b
- old
+ new
@@ -1,12 +1,11 @@
-require 'fileutils'
-
-# Task group used for creating various prototypes.
namespace :proto do
-
desc 'Creates a new migration'
task :migration, :directory, :name do |task, args|
+ require File.expand_path('../../../zen', __FILE__)
+ require 'fileutils'
+
# Validate the input
if !args[:directory]
abort 'You need to specify a directory for the migration.'
end
@@ -27,7 +26,6 @@
puts "Migration saved in #{new_path}"
rescue => e
puts "Failed to create the migration: #{e.message}"
end
end
-
end