Sha256: 25efb9a371fb94126b705193e304aef46fe0419e59236620c87a4c512c3aa89e
Contents?: true
Size: 552 Bytes
Versions: 3
Compression:
Stored size: 552 Bytes
Contents
module RailsCredentialsManager class Get < RailsCredentialsManager::Base def perform(keys) abort pastel.red("At least one key required") if keys.empty? keys_with_path = keys.index_with { |key| key.split(".").map(&:to_sym) } configs.each do |env, config| puts pastel.green("#{env}:") keys_with_path.each do |full_key, key_path| value = config_has_keys?(config, key_path) ? configs[env].dig(*key_path) : "not set" print_key_and_value(full_key, value) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems