diff options
author | George Claghorn <george@basecamp.com> | 2018-10-11 12:31:52 -0400 |
---|---|---|
committer | George Claghorn <george@basecamp.com> | 2018-10-11 12:31:52 -0400 |
commit | 3b84b7d57c2a06b7d5838266721866ed7db011ef (patch) | |
tree | a77664a3f8361d1f837dd924c70e2628ab5d63d4 | |
parent | 96a45285603971f546a89d6c4a59489b9859ddfb (diff) | |
download | rails-3b84b7d57c2a06b7d5838266721866ed7db011ef.tar.gz rails-3b84b7d57c2a06b7d5838266721866ed7db011ef.tar.bz2 rails-3b84b7d57c2a06b7d5838266721866ed7db011ef.zip |
Move installation tasks to lib/tasks/install.rake
-rw-r--r-- | lib/tasks/action_mailbox.rake | 17 | ||||
-rw-r--r-- | lib/tasks/install.rake | 19 |
2 files changed, 19 insertions, 17 deletions
diff --git a/lib/tasks/action_mailbox.rake b/lib/tasks/action_mailbox.rake deleted file mode 100644 index b7c11934f8..0000000000 --- a/lib/tasks/action_mailbox.rake +++ /dev/null @@ -1,17 +0,0 @@ -# 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 copy_migration active_storage:install ) - - task :copy_migration do - if Rake::Task.task_defined?("action_mailbox:install:migrations") - Rake::Task["action_mailbox:install:migrations"].invoke - else - Rake::Task["app:action_mailbox:install:migrations"].invoke - end - end -end diff --git a/lib/tasks/install.rake b/lib/tasks/install.rake new file mode 100644 index 0000000000..fdd76d8234 --- /dev/null +++ b/lib/tasks/install.rake @@ -0,0 +1,19 @@ +# 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 install:copy_migration active_storage:install ) + + namespace :install do + task :copy_migration do + if Rake::Task.task_defined?("action_mailbox:install:migrations") + Rake::Task["action_mailbox:install:migrations"].invoke + else + Rake::Task["app:action_mailbox:install:migrations"].invoke + end + end + end +end |