Class: Scry::Tasks
Class Method Summary collapse
-
.install_tasks ⇒ Object
Creates rake tasks that can be ran from the gem.
Class Method Details
.install_tasks ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/scry/tasks.rb', line 17 def self.install_tasks namespace :scry do desc "Scrape the configured url for course data" task :scrape do mkdir_p Scry.default_dir Scry.scrape end desc "Completely delete all downloaded files" task :clean do rm_rf Scry.default_dir end end end |