Skip to content

Commit

Permalink
Refactor how rake tasks are loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
Cuong Tran committed Feb 29, 2008
1 parent 8dd25dc commit 7f96c0c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions Manifest.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions bin/annotate
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env ruby
load 'Rakefile'
require 'tasks/annotate'
require 'annotate_models/tasks'

Rake::Task['annotate_models'].invoke

2 changes: 2 additions & 0 deletions lib/annotate_models/tasks.rb
Original file line number Diff line number Diff line change
@@ -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.