Sha256: 35dff07ef6d83b1ac6735cd64eb5613d3d21e7910d90f7e5e34844e20e4485a6

Contents?: true

Size: 491 Bytes

Versions: 1

Compression:

Stored size: 491 Bytes

Contents

module IGem::Rake
  # 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"
  #     ...
  def reload!
    Rake.application.clear
    if defined? Rails
      Rails.application.class.load_tasks
    end
    nil
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
igem-0.0.0 lib/igem/rake.rb