Module: KnifeContainer::Helpers
- Defined in:
- lib/knife-container/helpers.rb
Instance Method Summary collapse
-
#random_uid ⇒ String
Generates a short, but random UID for instances.
Instance Method Details
#random_uid ⇒ String
Generates a short, but random UID for instances.
10 11 12 13 |
# File 'lib/knife-container/helpers.rb', line 10 def random_uid require 'securerandom' unless defined?(SecureRandom) SecureRandom.hex(3) end |