Module: DtkCommon::Aux

Defined in:
lib/auxiliary.rb

Class Method Summary collapse

Class Method Details

.dtk_instance_repo_username(tenant_id = nil) ⇒ Object



23
24
25
26
27
# File 'lib/auxiliary.rb', line 23

def self.dtk_instance_repo_username(tenant_id=nil)
  instance_unique_id = get_ec2_instance_id() || get_macaddress().gsub(/:/,'-')
  tenant_id ||= ::DTK::Common::Aux.running_process_user()
  "dtk-#{instance_unique_id}--#{tenant_id}"
end