Class: DataAnonymization::RakeTasks

Inherits:
Object
  • Object
show all
Includes:
Rake::DSL
Defined in:
lib/tasks/rake_tasks.rb

Instance Method Summary collapse

Constructor Details

#initializeRakeTasks

Returns a new instance of RakeTasks.



8
9
10
11
12
13
14
# File 'lib/tasks/rake_tasks.rb', line 8

def initialize
  desc 'Task to build the clean empty destination database'
  task :empty_dest do
    system 'rm sample-data/chinook-empty.sqlite'
    system 'sqlite3 sample-data/chinook-empty.sqlite < sample-data/chinook_schema.sql'
  end
end