mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-10-30 18:47:51 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			9 lines
		
	
	
		
			347 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			9 lines
		
	
	
		
			347 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
| namespace :instance_id do
 | |
|   desc 'Get the installation identifier'
 | |
|   task :get_installation_identifier => :environment do
 | |
|     identifier = InstallationConfig.find_by(name: 'INSTALLATION_IDENTIFIER')&.value
 | |
|     identifier ||= InstallationConfig.create!(name: 'INSTALLATION_IDENTIFIER', value: SecureRandom.uuid).value
 | |
|     puts identifier
 | |
|   end
 | |
| end
 | 
