generated from DFE-Digital/govuk-rails-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 8
/
schools.rake
38 lines (31 loc) · 1.31 KB
/
schools.rake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# frozen_string_literal: true
namespace :schools do
desc "Send nomination invitations to schools"
task :send_invites, [:school_urns] => :environment do |_task, args|
InviteSchools.new.perform(args.school_urns.split)
end
desc "Send chaser nomination invites to schools without induction coordinators"
task send_chasers: :environment do
InviteSchools.new.send_chasers
end
desc "Send private beta invitations to schools"
task :invite_to_beta, [:school_urns] => :environment do |_task, args|
InviteSchools.new.invite_to_beta(args.school_urns.split)
end
desc "Resend private beta invitations to schools without participants"
task send_beta_chasers: :environment do
InviteSchools.new.send_beta_chasers
end
desc "Send nomination links to MAT schools"
task :invite_mats, [:school_urns] => :environment do |_task, args|
InviteSchools.new.invite_mats(args.school_urns.split)
end
desc "Send nomination links to federation schools"
task :invite_federations, [:school_urns] => :environment do |_task, args|
InviteSchools.new.invite_federations(args.school_urns.split)
end
desc "Send chasers to induction coordinators who have not signed in"
task send_induction_coordinator_sign_in_chasers: :environment do
InviteSchools.new.send_induction_coordinator_sign_in_chasers
end
end