Sha256: ec0b694658db054a6abde27b3ec3f84a13f0108e3ec6cf8bd2d2a3a16a71dcde

Contents?: true

Size: 518 Bytes

Versions: 31

Compression:

Stored size: 518 Bytes

Contents

logger = ::Logger.new(STDOUT)

namespace :laboratory do
  namespace :exams do
    task authorize_requests: :environment do
      logger.info "Exam Authorization Requests task"
      ExamRegistration.should_process.find_each do |exam_registration|
        logger.info "Processing exam registration '#{exam_registration.description}'"
        exam_registration.process_requests!
      rescue
        logger.error "Something wrong happened while processing '#{exam_registration.description}'"
      end
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
mumuki-laboratory-9.9.0 lib/tasks/exams.rake
mumuki-laboratory-9.8.2 lib/tasks/exams.rake
mumuki-laboratory-9.8.1 lib/tasks/exams.rake
mumuki-laboratory-9.8.0 lib/tasks/exams.rake
mumuki-laboratory-9.7.2 lib/tasks/exams.rake
mumuki-laboratory-9.7.1 lib/tasks/exams.rake
mumuki-laboratory-9.7.0 lib/tasks/exams.rake
mumuki-laboratory-9.6.0 lib/tasks/exams.rake
mumuki-laboratory-9.5.1 lib/tasks/exams.rake
mumuki-laboratory-9.5.0 lib/tasks/exams.rake
mumuki-laboratory-9.4.1 lib/tasks/exams.rake