Class: Credman::List
Instance Method Summary collapse
Methods inherited from Base
#config_has_keys?, #configs, #decript, #initialize, #key_for, #pastel, #print_key_and_value, #rewrite_config_for
Constructor Details
This class inherits a constructor from Credman::Base
Instance Method Details
#perform ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/credman/list.rb', line 3 def perform configs.each do |env, config| puts pastel.green("#{env}:") config.each do |key, value| if value.is_a?(Hash) key_path = [key] else value = {key => value} key_path = [] end deep_print_key_and_value(value, key_path) end end end |