Method: ActionMCP::Configuration#use_profile
- Defined in:
- lib/action_mcp/configuration.rb
#use_profile(profile_name) ⇒ Object
Switch to a specific profile
167 168 169 170 171 172 173 174 175 176 177 178 |
# File 'lib/action_mcp/configuration.rb', line 167 def use_profile(profile_name) profile_name = profile_name.to_sym unless @profiles.key?(profile_name) Rails.logger.warn "Profile '#{profile_name}' not found, using primary" profile_name = :primary end @active_profile = profile_name self end |