activewarehouse/activewarehouse-etl — Issue #64: undefined method `cattr_accessor' in command line tool
Author: adamrneary
Created: 2012-01-25 16:10:25+00:00
State: open

I am trying to run the command line tool on a local fork. Mac OS X Lion, Ruby 1.8.7. Test Matrix passes with 1.8.7 and 1.9.2, Rails 3.0.x, and Postgres.

In the "bin" folder in terminal I am executing "./etl ../test/xml.ctl" just to replicate in command line a process that passes in test mode, but I am getting the following error:

./../lib/etl/builder/date_dimension_builder.rb:19: undefined method `cattr_accessor' for ETL::Builder::DateDimensionBuilder:Class (NoMethodError)

cattr_accessor belongs to Class in rails, and it would seem all the the dependencies for active_record and active_support, etc., are getting loaded before the etl/builder section, but it seems like the code is presuming I have a Rails environment up when it's run.

Am I doing this incorrectly? Happy to provide a patch once we get this solved if someone might be able to point me in the right direction? Thanks in advance!