Commit 7f96c0c8 by Cuong Tran

Refactor how rake tasks are loaded

parent 8dd25dcb
...@@ -7,6 +7,7 @@ config/hoe.rb ...@@ -7,6 +7,7 @@ config/hoe.rb
config/requirements.rb config/requirements.rb
lib/annotate_models.rb lib/annotate_models.rb
lib/annotate_models/version.rb lib/annotate_models/version.rb
lib/annotate_models/tasks.rb
log/debug.log log/debug.log
script/destroy script/destroy
script/generate script/generate
......
#!/usr/bin/env ruby #!/usr/bin/env ruby
load 'Rakefile' require 'annotate_models/tasks'
require 'tasks/annotate'
Rake::Task['annotate_models'].invoke Rake::Task['annotate_models'].invoke
load 'Rakefile'
Dir[File.join(File.dirname(__FILE__), '../tasks', '**/*.rake')].each { |rake| load rake }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment