We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4cac89c commit c64383aCopy full SHA for c64383a
lib/tasks/maintenance.rake
@@ -42,7 +42,8 @@ namespace :maintenance do
42
end
43
44
def hostnames(&block)
45
- Parallel.each(Tenant.all) do |tenant|
+ tenants = ENV["TENANT"] ? [ ENV["TENANT"] ] : Tenant.all
46
+ Parallel.each(tenants) do |tenant|
47
Tenant.switch(tenant) do
48
Current.org.hostnames.each do |hostname|
49
block.call(hostname)
0 commit comments