Permalink
Browse files

Refactor how rake tasks are loaded

  • Loading branch information...
1 parent 8dd25dc commit 7f96c0c88868afc2b80fe4b4c8748a5edad27c29 Cuong Tran committed Feb 29, 2008
Showing with 4 additions and 2 deletions.
  1. +1 −0 Manifest.txt
  2. +1 −2 bin/annotate
  3. +2 −0 lib/annotate_models/tasks.rb
  4. 0 lib/tasks/{annotate.rb → annotate.rake}
View
@@ -7,6 +7,7 @@ config/hoe.rb
config/requirements.rb
lib/annotate_models.rb
lib/annotate_models/version.rb
+lib/annotate_models/tasks.rb
log/debug.log
script/destroy
script/generate
View
@@ -1,6 +1,5 @@
#!/usr/bin/env ruby
-load 'Rakefile'
-require 'tasks/annotate'
+require 'annotate_models/tasks'
Rake::Task['annotate_models'].invoke
@@ -0,0 +1,2 @@
+load 'Rakefile'
+Dir[File.join(File.dirname(__FILE__), '../tasks', '**/*.rake')].each { |rake| load rake }
File renamed without changes.

0 comments on commit 7f96c0c

Please sign in to comment.