Class: Wanderung

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

Parameters:

  • value

    the value to set the attribute logger to.



19
20
21
# File 'lib/wanderung.rb', line 19

def logger=(value)
  @logger = value
end

Instance Method Details

#runObject



15
16
17
# File 'lib/wanderung.rb', line 15

def run
  databases.map(&:migrate)
end