Class: RailsCredentialsManager::List

Inherits:
Base
  • Object
show all
Defined in:
lib/rails_credentials_manager/list.rb

Constant Summary

Constants inherited from Base

Base::AVAILABLE_ENVIRONMENTS

Instance Method Summary collapse

Methods inherited from Base

#config_has_keys?, #configs, #initialize, #pastel, #print_key_and_value

Constructor Details

This class inherits a constructor from RailsCredentialsManager::Base

Instance Method Details

#performObject



3
4
5
6
7
8
9
10
11
# File 'lib/rails_credentials_manager/list.rb', line 3

def perform
  configs.each do |env, config|
    puts pastel.green("#{env}:")

    config.each do |key, value|
      deep_print_key_and_value(value, [key])
    end
  end
end