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.23.0 lib/tasks/exams.rake
mumuki-laboratory-9.22.0 lib/tasks/exams.rake
mumuki-laboratory-9.21.0 lib/tasks/exams.rake
mumuki-laboratory-9.20.1 lib/tasks/exams.rake
mumuki-laboratory-9.20.0 lib/tasks/exams.rake
mumuki-laboratory-9.19.0 lib/tasks/exams.rake
mumuki-laboratory-9.18.1 lib/tasks/exams.rake
mumuki-laboratory-9.18.0 lib/tasks/exams.rake
mumuki-laboratory-9.17.0 lib/tasks/exams.rake
mumuki-laboratory-9.16.0 lib/tasks/exams.rake
mumuki-laboratory-9.15.0 lib/tasks/exams.rake
mumuki-laboratory-9.14.1 lib/tasks/exams.rake
mumuki-laboratory-9.14.0 lib/tasks/exams.rake
mumuki-laboratory-9.13.2 lib/tasks/exams.rake
mumuki-laboratory-9.13.1 lib/tasks/exams.rake
mumuki-laboratory-9.13.0 lib/tasks/exams.rake
mumuki-laboratory-9.12.1 lib/tasks/exams.rake
mumuki-laboratory-9.12.0 lib/tasks/exams.rake
mumuki-laboratory-9.11.0 lib/tasks/exams.rake
mumuki-laboratory-9.10.0 lib/tasks/exams.rake