Class: Chicago::ETL::RakeTasks
- Inherits:
-
Rake::TaskLib
- Object
- Rake::TaskLib
- Chicago::ETL::RakeTasks
- Defined in:
- lib/chicago/etl/tasks.rb
Overview
Instance Method Summary collapse
- #define ⇒ Object
-
#initialize(schema, options) ⇒ RakeTasks
constructor
A new instance of RakeTasks.
Constructor Details
#initialize(schema, options) ⇒ RakeTasks
Returns a new instance of RakeTasks.
18 19 20 21 22 23 |
# File 'lib/chicago/etl/tasks.rb', line 18 def initialize(schema, ) @schema = schema @db = [:staging_db] define end |
Instance Method Details
#define ⇒ Object
25 26 27 28 29 30 31 32 |
# File 'lib/chicago/etl/tasks.rb', line 25 def define namespace :db do desc "Creates the etl tables" task :create_etl_tables do Chicago::ETL::TableBuilder.build(@db) end end end |