Class: Wanderung
- Inherits:
-
Object
- Object
- Wanderung
- Defined in:
- lib/wanderung.rb,
lib/wanderung/version.rb,
lib/wanderung/database.rb
Overview
Allows you to create multiple database schemas
Defined Under Namespace
Classes: Database
Constant Summary collapse
- VERSION =
'0.3.0'
Instance Attribute Summary collapse
-
#logger ⇒ Object
writeonly
Sets the attribute logger.
Instance Method Summary collapse
-
#initialize(database_configs) ⇒ Wanderung
constructor
A new instance of Wanderung.
- #run ⇒ Object
Constructor Details
#initialize(database_configs) ⇒ Wanderung
Returns a new instance of Wanderung.
11 12 13 |
# File 'lib/wanderung.rb', line 11 def initialize(database_configs) @database_configs = database_configs.is_a?(Hash) ? [database_configs] : database_configs end |
Instance Attribute Details
#logger=(value) ⇒ Object (writeonly)
Sets the attribute logger
19 20 21 |
# File 'lib/wanderung.rb', line 19 def logger=(value) @logger = value end |
Instance Method Details
#run ⇒ Object
15 16 17 |
# File 'lib/wanderung.rb', line 15 def run databases.map(&:migrate) end |