Sha256: 374951fc7443344f307fa5e4a41703afae670a973aa60a46478b7bb8072277bb

Contents?: true

Size: 754 Bytes

Versions: 39

Compression:

Stored size: 754 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("../rails/generators/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

39 entries across 39 versions & 4 rubygems

Version Path
actionmailbox-6.0.6.1 lib/tasks/install.rake
actionmailbox-6.0.6 lib/tasks/install.rake
actionmailbox-6.0.5.1 lib/tasks/install.rake
actionmailbox-6.0.5 lib/tasks/install.rake
actionmailbox-6.0.4.8 lib/tasks/install.rake
actionmailbox-6.0.4.7 lib/tasks/install.rake
actionmailbox-6.0.4.6 lib/tasks/install.rake
actionmailbox-6.0.4.5 lib/tasks/install.rake
actionmailbox-6.0.4.4 lib/tasks/install.rake
actionmailbox-6.0.4.3 lib/tasks/install.rake
actionmailbox-6.0.4.2 lib/tasks/install.rake
actionmailbox-6.0.4.1 lib/tasks/install.rake
actionmailbox-6.0.4 lib/tasks/install.rake
actionmailbox-6.0.3.7 lib/tasks/install.rake
actionmailbox-6.0.3.6 lib/tasks/install.rake
actionmailbox-6.0.3.5 lib/tasks/install.rake
actionmailbox-6.0.3.4 lib/tasks/install.rake
actionmailbox-6.0.3.3 lib/tasks/install.rake
actionmailbox-6.0.3.2 lib/tasks/install.rake
actionmailbox-6.0.3.1 lib/tasks/install.rake