Sha256: 0b9630f96b0bc02dc1c02c9129699b158338b8b6127ee05efe3392e6a5a32185

Contents?: true

Size: 775 Bytes

Versions: 40

Compression:

Stored size: 775 Bytes

Contents

# frozen_string_literal: true

namespace :action_text do
  # Prevent migration installation task from showing up twice.
  Rake::Task["install:migrations"].clear_comments

  desc "Copy over the migration, stylesheet, and JavaScript files"
  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_text:install:migrations"].invoke
  end
end

Version data entries

40 entries across 40 versions & 5 rubygems

Version Path
actiontext-6.0.3.1 lib/tasks/actiontext.rake
actiontext-6.0.3 lib/tasks/actiontext.rake
actiontext-6.0.3.rc1 lib/tasks/actiontext.rake
actiontext-6.0.2.2 lib/tasks/actiontext.rake
argon-1.3.1 vendor/bundle/ruby/2.7.0/gems/actiontext-6.0.2.1/lib/tasks/actiontext.rake
symbolic_enum-1.1.5 vendor/bundle/ruby/2.7.0/gems/actiontext-6.0.2.1/lib/tasks/actiontext.rake
actiontext-6.0.2.1 lib/tasks/actiontext.rake
actiontext-6.0.2 lib/tasks/actiontext.rake
actiontext-6.0.2.rc2 lib/tasks/actiontext.rake
actiontext-6.0.2.rc1 lib/tasks/actiontext.rake
actiontext-6.0.1 lib/tasks/actiontext.rake
chatops-rpc-0.0.2 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/actiontext-6.0.0/lib/tasks/actiontext.rake
actiontext-6.0.1.rc1 lib/tasks/actiontext.rake
chatops-rpc-0.0.1 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/actiontext-6.0.0/lib/tasks/actiontext.rake
actiontext-6.0.0 lib/tasks/actiontext.rake
actiontext-6.0.0.rc2 lib/tasks/actiontext.rake
actiontext-6.0.0.rc1 lib/tasks/actiontext.rake
actiontext-6.0.0.beta3 lib/tasks/actiontext.rake
actiontext-6.0.0.beta2 lib/tasks/actiontext.rake
actiontext-6.0.0.beta1 lib/tasks/actiontext.rake