Module: Formatron::CLI::Generators::DatabagSecret

Defined in:
lib/formatron/cli/generators/databag_secret.rb

Overview

CLI command for databag secret generator

Instance Method Summary collapse

Instance Method Details

#databag_secret_action(c) ⇒ Object



8
9
10
11
12
# File 'lib/formatron/cli/generators/databag_secret.rb', line 8

def databag_secret_action(c)
  c.action do |_args, _options|
    puts Formatron::Generators::Util.databag_secret
  end
end

#databag_secret_formatron_commandObject



14
15
16
17
18
19
20
21
# File 'lib/formatron/cli/generators/databag_secret.rb', line 14

def databag_secret_formatron_command
  command :'generate data bag secret' do |c|
    c.syntax = 'formatron generate data bag secret [options]'
    c.summary = 'Generate a random data bag secret'
    c.description = 'Generate a random data bag secret'
    databag_secret_action c
  end
end