Class: Rails::Sequel::Configuration
- Inherits:
-
Object
- Object
- Rails::Sequel::Configuration
- Defined in:
- lib/sequel-rails/configuration.rb
Instance Attribute Summary collapse
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#migration_dir ⇒ Object
Returns the value of attribute migration_dir.
-
#raw ⇒ Object
readonly
Returns the value of attribute raw.
-
#root ⇒ Object
readonly
Returns the value of attribute root.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#logger ⇒ Object
Returns the value of attribute logger.
16 17 18 |
# File 'lib/sequel-rails/configuration.rb', line 16 def logger @logger end |
#migration_dir ⇒ Object
Returns the value of attribute migration_dir.
17 18 19 |
# File 'lib/sequel-rails/configuration.rb', line 17 def migration_dir @migration_dir end |
#raw ⇒ Object (readonly)
Returns the value of attribute raw.
15 16 17 |
# File 'lib/sequel-rails/configuration.rb', line 15 def raw @raw end |
#root ⇒ Object (readonly)
Returns the value of attribute root.
15 16 17 |
# File 'lib/sequel-rails/configuration.rb', line 15 def root @root end |
Class Method Details
Instance Method Details
#environment_for(name) ⇒ Object
19 20 21 |
# File 'lib/sequel-rails/configuration.rb', line 19 def environment_for(name) environments[name.to_s] || environments[name.to_sym] end |
#environments ⇒ Object
23 24 25 26 27 28 29 |
# File 'lib/sequel-rails/configuration.rb', line 23 def environments @environments ||= @raw.inject({}) do |normalized, environment| name, config = environment.first, environment.last normalized[name] = normalize_repository_config(config) normalized end end |