Sha256: 70da2d616713ad1ef2e36840a65eb0b2778837e568b9b8bad7306c3f573ae3ad
Contents?: true
Size: 747 Bytes
Versions: 1
Compression:
Stored size: 747 Bytes
Contents
# frozen_string_literal: true namespace :action_mailbox do # Prevent migration installation task from showing up twice. Rake::Task["install:migrations"].clear_comments desc "Copy over the migration" task install: %w[ environment run_installer copy_migrations ] task :run_installer do installer_template = File.expand_path("../templates/installer.rb", __dir__) system "#{RbConfig.ruby} ./bin/rails app:template LOCATION=#{installer_template}" end task :copy_migrations do Rake::Task["active_storage:install:migrations"].invoke Rake::Task["railties:install:migrations"].reenable # Otherwise you can't run 2 migration copy tasks in one invocation Rake::Task["action_mailbox:install:migrations"].invoke end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
actionmailbox-0.1.0 | lib/tasks/install.rake |