Sha256: bade1bb5bcf19a96f838e2afbc6ece0975fe110c411a2c238f9392d9bff23f5b
Contents?: true
Size: 811 Bytes
Versions: 7
Compression:
Stored size: 811 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:setup_repos'].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 desc "Updates changes to the config file" task :update => :environment do puts "Updating repos" Rake::Task['hubstats:populate:update_repos'].invoke end end
Version data entries
7 entries across 7 versions & 1 rubygems