Method: WonderOracleDatabase.parsed_env
- Defined in:
- lib/wonder_oracle_database.rb
.parsed_env ⇒ Object
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
# File 'lib/wonder_oracle_database.rb', line 43 def parsed_env match = .match(/^(\w+)\/(\w+)@([\d+\.\:]+)\/?(.+)?$/) return invalid_variable_error unless match usuario, senha, host, banco = match.captures { username: usuario, password: senha, database: banco, host: host, adapter: 'oracle_enhanced', shared: true, encoding: 'unicode' } end |