Module: IGem::Rake
- Included in:
- Rake
- Defined in:
- lib/igem/rake.rb
Instance Method Summary collapse
-
#reload! ⇒ Object
Reloads the rake tasks.
Instance Method Details
#reload! ⇒ Object
Reloads the rake tasks. This is necessary if you want to develop your rake tasks and call them from the command line
Usage:
load "path/to/my/tasks.rake"
igem "rake my:task"
# see results, change code
Rake.reload!
load "path/to/my/tasks.rake"
igem "rake my:task"
...
14 15 16 17 18 19 20 |
# File 'lib/igem/rake.rb', line 14 def reload! Rake.application.clear if defined? Rails Rails.application.class.load_tasks end nil end |