chore(task): deprecate after party tasks
This commit is contained in:
parent
9eb9e80232
commit
efa744c227
1 changed files with 17 additions and 0 deletions
17
lib/generators/after_party/task/task_generator.rb
Normal file
17
lib/generators/after_party/task/task_generator.rb
Normal file
|
@ -0,0 +1,17 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require 'rails/generators'
|
||||
|
||||
Rails.application.config.after_initialize do
|
||||
module AfterParty
|
||||
module Generators
|
||||
class TaskGenerator
|
||||
prepend Module.new {
|
||||
def invoke_all
|
||||
warn "[DEPRECATION] 'after_party:task' is deprecated. Use 'rails generate maintenance_tasks:task #{name}' instead."
|
||||
end
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue