mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-11-04 04:57: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
 |