Sha256: c42e2b1594f79a5be50001c5cefcbc3df9ba17820709509398f8700dcd9e6fa3
Contents?: true
Size: 764 Bytes
Versions: 4
Compression:
Stored size: 764 Bytes
Contents
require 'rake' require 'find' module Lanes module Command class Db < Thor desc 'migrate', 'Run database migrations for all loaded extensions' def migrate run_task "db:migrate" end desc "seed", "seed the database with data from all extensions" def seed run_task "db:seed" end private def run_task(task) Command.load_current_extension require_relative "../rake_tasks" Extensions.each do |ext| Dir.chdir(ext.root_path) do Rake::Task[task].invoke end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
lanes-0.1.2 | lib/lanes/command/db.rb |
lanes-0.1.0 | lib/lanes/command/db.rb |
lanes-0.0.8 | lib/lanes/command/db.rb |
lanes-0.0.5 | lib/lanes/command/db.rb |