4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# File 'lib/rails-mcp-server/analyzers/analyze_environment_config.rb', line 4
def call
unless current_project
return "No active project. Please switch to a project first."
end
environments_dir = File.join(active_project_path, "config", "environments")
unless File.directory?(environments_dir)
return "Environments directory not found at config/environments."
end
env_files = Dir.glob(File.join(environments_dir, "*.rb"))
return "No environment files found." if env_files.empty?
analyze_environments(env_files)
end
|