Method: DBGeni::Base#select_environment
- Defined in:
- lib/dbgeni/base.rb
permalink #select_environment(environment_name) ⇒ Object
[View source]
47 48 49 50 51 52 53 54 |
# File 'lib/dbgeni/base.rb', line 47 def select_environment(environment_name) current_environment = selected_environment_name if current_environment != nil && current_environment != environment_name # disconnect from database as the connection may well have changed! disconnect end @config.set_env(environment_name) end |