This should be added to the root fizzy project so that you dont have to set the instance var!

This commit is contained in:
Jorge Manrubia
2025-11-23 20:24:32 +01:00
parent 63c9bd8256
commit 79e1861dbb
-18
View File
@@ -16,21 +16,3 @@ namespace :test do
end
end
namespace :saas do
SAAS_FILE_PATH = "tmp/saas.txt"
desc "Enable SaaS mode"
task :enable => :environment do
file_path = Rails.root.join(SAAS_FILE_PATH)
FileUtils.mkdir_p(File.dirname(file_path))
FileUtils.touch(file_path)
puts "SaaS mode enabled (#{file_path} created)"
end
desc "Disable SaaS mode"
task :disable => :environment do
file_path = Rails.root.join(SAAS_FILE_PATH)
FileUtils.rm_f(file_path)
puts "SaaS mode disabled (#{file_path} removed)"
end
end