Class: SchemaTransformer::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/schema_transformer/base.rb

Direct Known Subclasses

Analyze, Transform

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(base = File.expand_path("..", __FILE__), options = {}) ⇒ Base

Returns a new instance of Base.



4
5
6
7
8
9
10
11
12
13
# File 'lib/schema_transformer/base.rb', line 4

def initialize(base = File.expand_path("..", __FILE__), options = {})
  @base = base
  @db, @log, @mail = ActiveWrapper.setup(
    :base => @base,
    :env => ENV['RAILS_ENV'] || 'development',
    :log => "schema_transformer"
  )
  @db.establish_connection
  @conn = ActiveRecord::Base.connection
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



3
4
5
# File 'lib/schema_transformer/base.rb', line 3

def options
  @options
end