class Appsignal::CLI::Diagnose
def print_environment(config)
def print_environment(config) env = config.env option = :env option_sources = sources_for_option(option) sources_label = config_sources_label(option, option_sources) print " Environment: #{format_config_option(env)}" if env == "" puts "\n Warning: No environment set, no config loaded!" puts " Please make sure appsignal diagnose is run within your " puts " project directory with an environment." puts " appsignal diagnose --environment=production" else puts sources_label end end