Method: Command::Config#call

Defined in:
lib/command/config.rb

#callObject

rubocop:disable Metrics/MethodLength



23
24
25
26
27
28
29
30
31
32
33
34
35
# File 'lib/command/config.rb', line 23

def call # rubocop:disable Metrics/MethodLength
  if config.app
    puts "#{Shell.color("Current config (app '#{config.app}')", :blue)}:"
    puts pretty_print(config.current)
    puts
  else
    config.apps.each do |app_name, app_options|
      puts "#{Shell.color("Config for app '#{app_name}'", :blue)}:"
      puts pretty_print(app_options)
      puts
    end
  end
end