Using Rake::Task class method to define task.