Sha256: b4da16a3946b1cfbe9a34e4642e2e0d47921d1d40727c9bcdcd372b0747678ee
Contents?: true
Size: 636 Bytes
Versions: 22
Compression:
Stored size: 636 Bytes
Contents
namespace :hubstats do desc "Create the database, load the schema, and pull data from Github (use hubstats:reset to also drop the db first)" task :setup => :environment do puts "Running rake db:create" Rake::Task['db:create'].invoke puts "Running rake db:migrate" Rake::Task['db:migrate'].invoke puts "Pulling data from Github. This may take a while..." Rake::Task['hubstats:populate:all'].invoke end desc "Drops the database, then runs rake hubstats:setup" task :reset => :environment do puts "Droping Database" Rake::Task['db:drop'].invoke Rake::Task['hubstats:setup'].invoke end end
Version data entries
22 entries across 22 versions & 1 rubygems
Version | Path |
---|---|
hubstats-0.0.3 | lib/tasks/hubstats_tasks.rake |
hubstats-0.0.2 | lib/tasks/hubstats_tasks.rake |