Module: Formatron::Generators::Util

Defined in:
lib/formatron/generators/util.rb,
lib/formatron/generators/util/readme.rb,
lib/formatron/generators/util/cookbook.rb,
lib/formatron/generators/util/gitignore.rb

Overview

Utility methods

Defined Under Namespace

Modules: Cookbook, Gitignore, Readme

Class Method Summary collapse

Class Method Details

.databag_secretObject



11
12
13
# File 'lib/formatron/generators/util.rb', line 11

def self.databag_secret
  SecureRandom.random_number(36**40).to_s(36).upcase
end

.guidObject



7
8
9
# File 'lib/formatron/generators/util.rb', line 7

def self.guid
  Random.rand(36**8).to_s(36).upcase
end