Initial github action setup

This commit is contained in:
Jorge Manrubia
2025-11-24 16:37:20 +01:00
parent 9e8bc5b30b
commit 0328149ba2
2 changed files with 102 additions and 2 deletions
+2 -2
View File
@@ -2,7 +2,7 @@ namespace :saas do
SAAS_FILE_PATH = "tmp/saas.txt"
desc "Enable SaaS mode"
task :enable => :environment do
task enable: :environment do
file_path = Rails.root.join(SAAS_FILE_PATH)
FileUtils.mkdir_p(File.dirname(file_path))
FileUtils.touch(file_path)
@@ -10,7 +10,7 @@ namespace :saas do
end
desc "Disable SaaS mode"
task :disable => :environment do
task disable: :environment do
file_path = Rails.root.join(SAAS_FILE_PATH)
FileUtils.rm_f(file_path)
puts "SaaS mode disabled (#{file_path} removed)"