Class: SecretsCli::Prompts::SecretsFile

Inherits:
Object
  • Object
show all
Includes:
Helpers
Defined in:
lib/secrets_cli/prompts/secrets_file.rb

Instance Method Summary collapse

Methods included from Helpers

#config, #error, #error!, #pastel, #pretty_diff, #print_verbose, #prompt

Instance Method Details

#callObject



6
7
8
9
10
11
12
# File 'lib/secrets_cli/prompts/secrets_file.rb', line 6

def call
  case choice
  when 1 then 'config/application.yml'
  when 2 then '.env'
  when 3 then prompt.ask('What secrets file are you using?', required: true)
  end
end