Module: CemAcpt::Utils::Node

Defined in:
lib/cem_acpt/utils.rb

Overview

Node-related utilities

Class Method Summary collapse

Class Method Details

.random_instance_name(prefix: 'cem-acpt-', length: 24) ⇒ Object



76
77
78
79
# File 'lib/cem_acpt/utils.rb', line 76

def self.random_instance_name(prefix: 'cem-acpt-', length: 24)
  rand_length = length - prefix.length
  "#{prefix}#{::SecureRandom.hex(rand_length)}"
end